feat: add 'nixd' as nix lsp to vscode
This commit is contained in:
parent
295cfa4c67
commit
6e7d63bbfd
25
.vscode/settings.json
vendored
Normal file
25
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"files.eol": "\n",
|
||||||
|
"[nix]": {
|
||||||
|
"editor.tabSize": 2
|
||||||
|
},
|
||||||
|
"nix.enableLanguageServer": true,
|
||||||
|
"nix.serverPath": "nixd",
|
||||||
|
"nix.serverSettings": {
|
||||||
|
"nixd": {
|
||||||
|
"formatting": {
|
||||||
|
"command": [
|
||||||
|
"nixfmt"
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"nixos": {
|
||||||
|
"expr": "(builtins.getFlake \"${workspaceFolder}\").nixosConfigurations.NixOS-VM.options",
|
||||||
|
},
|
||||||
|
// "home-manager": {
|
||||||
|
// "expr": "(builtins.getFlake \"${workspaceFolder}\").homeConfigurations.NixOS-VM.options",
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
@ -88,7 +88,11 @@
|
|||||||
|
|
||||||
name = "nixos-config";
|
name = "nixos-config";
|
||||||
packages = builtins.attrValues {
|
packages = builtins.attrValues {
|
||||||
inherit (pkgs) nixfmt-rfc-style git sops;
|
inherit (pkgs) nixfmt-rfc-style sops;
|
||||||
|
};
|
||||||
|
languages.nix = {
|
||||||
|
enable = true;
|
||||||
|
lsp.package = pkgs.nixd;
|
||||||
};
|
};
|
||||||
pre-commit.hooks = {
|
pre-commit.hooks = {
|
||||||
actionlint.enable = true;
|
actionlint.enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user