feat: nixd

This commit is contained in:
2025-05-10 12:39:07 +08:00
parent e380732f90
commit 64d4085b98
2 changed files with 16 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ local servers = {
"ts_ls",
"jsonls",
"cssls",
"nil_ls",
"nixd",
"html",
}
@@ -48,6 +48,20 @@ local extra_config = {
}
},
},
nixd = {
settings = {
nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }",
},
options = {
nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.imxyy-nix.options',
},
},
}
}
}
}
local capabilities = require("cmp_nvim_lsp").default_capabilities()