refactor(nvim): replace nixd with nil_ls

This commit is contained in:
Price Hiller 2024-03-07 15:51:18 -06:00
parent 0fcfbfdb50
commit fd59dd0d65
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -466,9 +466,25 @@ return {
dap_debug_gui = true,
})
lspconfig.nil_ls.setup({
capabilities = lsp_capabilities,
on_attach = on_attach,
settings = {
["nil"] = {
formatting = { command = { "nixfmt" } },
nix = {
maxMemoryMB = 60000,
flake = {
autoArchive = true,
autoEvalInputs = true
}
}
},
},
})
-- NOTE: GENERIC LSP SERVERS
for _, server in ipairs({
"nixd",
"clangd",
"cmake",
"bashls",