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

This commit is contained in:
Michael Mandl 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,
})