feat: configure nil_ls

nixos
Moritz Böhme 2024-07-01 21:41:32 +02:00
parent 55325053ec
commit a11717c8ce
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 10 additions and 1 deletions

View File

@ -123,7 +123,6 @@ local servers = {
"bashls", "bashls",
"gleam", "gleam",
"gopls", "gopls",
"nil_ls",
"pylsp", "pylsp",
"ruff_lsp", "ruff_lsp",
"templ", "templ",
@ -133,6 +132,16 @@ for _, lsp in ipairs(servers) do
lspconfig_setup(lsp, {}) lspconfig_setup(lsp, {})
end end
lspconfig_setup("nil_ls", {
settings = {
flake = {
autoArchive = true,
autoEvalInputs = true,
nixpkgsInputName = "nixpkgs",
},
},
})
lspconfig_setup("nixd", { lspconfig_setup("nixd", {
settings = { settings = {
nixd = { nixd = {