fix(nixd): properly configure 'nixd' nvim lsp

This commit is contained in:
2026-01-26 21:58:04 +01:00
parent cf381042d0
commit 8fc4e23d3b
2 changed files with 27 additions and 4 deletions

View File

@@ -61,7 +61,30 @@ local servers = {
Lua = {},
},
},
nixd = {},
nixd = {
settings = {
nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }",
expr = 'import (builtins.getFlake ("git+file://" + toString ../../../../../.)).inputs.nixpkgs { }',
},
},
options = {
nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ../../../../../.)).nixosConfigurations."'
.. vim.fn.hostname()
.. '".options',
},
home_manager = {
expr = '(builtins.getFlake ("git+file://" + toString ../../../../../.)).homeConfigurations."'
.. vim.fn.expand("$USER")
.. "@"
.. vim.fn.hostname()
.. '".options',
},
},
},
},
pyright = {},
-- tsserver = {},
svelte = {