helix: update lsps

This commit is contained in:
notohh 2024-05-26 16:49:29 -04:00
parent 1d4a7cfd63
commit 183ce877e3
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 17 additions and 0 deletions

View file

@ -5,6 +5,7 @@
]; ];
programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true;
settings = { settings = {
theme = "tokyonight"; theme = "tokyonight";
editor = { editor = {

View file

@ -16,8 +16,12 @@
{ {
name = "rust"; name = "rust";
auto-format = true; auto-format = true;
language-servers = [
"rust-analyzer"
];
formatter = { formatter = {
command = lib.getExe rustfmt; command = lib.getExe rustfmt;
args = ["--edition" "2021"];
}; };
} }
{ {
@ -36,6 +40,18 @@
command = "${nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver"; command = "${nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
args = ["--stdio"]; args = ["--stdio"];
}; };
typescript-language-server = with pkgs.nodePackages; {
command = "${typescript-language-server}/bin/typescript-language-server";
args = ["--stdio"];
};
rust-analyzer.config = {
checkOnSave.command = "clippy";
inlayHints = {
closingBraceHints.enable = false;
parameterHints.enable = false;
typeHints.enable = true;
};
};
}; };
}; };
} }