feat(nvim): add null-ls for markdown formatting

main
mandlm 2022-07-21 14:02:12 +02:00
parent 35bdf7c2a2
commit cd40e17634
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 13 additions and 0 deletions

View File

@ -69,6 +69,7 @@
lsp-status-nvim
rust-tools-nvim
lua-dev-nvim
null-ls-nvim
];
extraConfig = ''

View File

@ -93,3 +93,15 @@ local luadev = require("lua-dev").setup({
})
lspconfig["sumneko_lua"].setup(luadev)
-- setup null-ls for markdown formatting
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.prettier.with({
filetypes = { "markdown" }
}),
},
on_attach = on_attach,
})