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 prettierd
# Nix # Nix
nil nixd
nixfmt-rfc-style nixfmt-rfc-style
# TypeScript # TypeScript

View file

@ -55,7 +55,7 @@ return {
"jsonls", "jsonls",
"lua_ls", "lua_ls",
"marksman", "marksman",
"nil_ls", "nixd",
"rust_analyzer", "rust_analyzer",
"svelte", "svelte",
"taplo", "taplo",
@ -67,6 +67,21 @@ return {
---@diagnostic disable: missing-fields ---@diagnostic disable: missing-fields
config = { config = {
-- clangd = { capabilities = { offsetEncoding = "utf-8" } }, -- 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 -- customize how language servers are attached
handlers = { handlers = {