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 = {
enable = true;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {

View file

@ -16,8 +16,12 @@
{
name = "rust";
auto-format = true;
language-servers = [
"rust-analyzer"
];
formatter = {
command = lib.getExe rustfmt;
args = ["--edition" "2021"];
};
}
{
@ -36,6 +40,18 @@
command = "${nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
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;
};
};
};
};
}