neovim: use nixd for nix lang lsp

This commit is contained in:
Alexandre Cavalheiro 2024-07-11 05:09:03 -03:00
parent b757eadc7c
commit 5bdb2ce928
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 17 additions and 2 deletions

View file

@ -30,7 +30,7 @@
prettierd
# Nix
nil
nixd
nixfmt-rfc-style
# TypeScript

View file

@ -55,7 +55,7 @@ return {
"jsonls",
"lua_ls",
"marksman",
"nil_ls",
"nixd",
"rust_analyzer",
"svelte",
"taplo",
@ -67,6 +67,21 @@ return {
---@diagnostic disable: missing-fields
config = {
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
nixd = {
settings = {
nixd = {
options = {
nixos = {
expr = '(builtins.getFlake ("git+file:///home/wizardlink/.system")).nixosConfigurations.nixos.options',
},
home_manager = {
expr =
'(builtins.getFlake ("git+file:///home/wizardlink/.system")).homeConfigurations.wizardlink.options',
},
},
},
},
},
},
-- customize how language servers are attached
handlers = {