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

@@ -39,7 +39,7 @@ lib.my.makeHomeProgramConfig {
rust-analyzer rust-analyzer
pest-ide-tools pest-ide-tools
nil nixd
gotools gotools
gopls gopls

View File

@@ -7,7 +7,7 @@ local servers = {
"ts_ls", "ts_ls",
"jsonls", "jsonls",
"cssls", "cssls",
"nil_ls", "nixd",
"html", "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() local capabilities = require("cmp_nvim_lsp").default_capabilities()