Mercurial > dotfiles
changeset 512:fc7a15e47e72
update null-ls config to remove lspconfig dependency
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 21 Dec 2021 10:55:25 +0100 |
parents | 1f557997bfef |
children | 2476af02ba12 |
files | .chezmoitemplates/init.lua |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Tue Dec 21 10:33:27 2021 +0100 +++ b/.chezmoitemplates/init.lua Tue Dec 21 10:55:25 2021 +0100 @@ -801,17 +801,15 @@ lsp.pyright.setup { on_attach = on_attach, capabilities = capabilities } -null_ls.config { +null_ls.setup { sources = { null_ls.builtins.formatting.black, null_ls.builtins.formatting.stylua, null_ls.builtins.diagnostics.shellcheck, null_ls.builtins.formatting.prettier, }, -} -lsp['null-ls'].setup { on_attach = on_attach, - root_dir = require('lspconfig.util').root_pattern('.hg', '.git', 'stylua.toml'), + root_dir = require('null-ls.utils').root_pattern('.hg', '.git', 'stylua.toml'), } local luadev = require('lua-dev').setup {