setup lsp stuff for nix in helix

This commit is contained in:
Adithya 2024-04-14 14:19:03 +05:30
parent c977039e52
commit 558f718fc1
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -1,4 +1,4 @@
_: {
{ pkgs, ... }: {
programs.helix = {
enable = true;
settings = {
@ -13,5 +13,24 @@ _: {
};
};
};
languages = {
language-server = {
nixd = {
command = "${pkgs.nixd}/bin/nixd";
};
};
language = [
{
name = "nix";
file-types = [ "nix" ];
roots = [ "flake.nix" ];
language-servers = [ "nixd" ];
formatter = {
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt";
};
auto-format = true;
}
];
};
};
}