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 = {

View File

@@ -73,11 +73,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1768875095,
"narHash": "sha256-dYP3DjiL7oIiiq3H65tGIXXIT1Waiadmv93JS0sS+8A=",
"lastModified": 1769421245,
"narHash": "sha256-m5QLKjpdhbDrhyrUbEm5Haq3lqE5Z6xh2tab5vTHUTo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ed142ab1b3a092c4d149245d0c4126a5d7ea00b0",
"rev": "5b265bda51b42a2a85af0a543c3e57b778b01b7d",
"type": "github"
},
"original": {