diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index fc20135..cc4af18 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -69,6 +69,7 @@ lsp-status-nvim rust-tools-nvim lua-dev-nvim + null-ls-nvim ]; extraConfig = '' diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 23cdb0f..b16fce4 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -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, +})