helix: update lsps
This commit is contained in:
parent
1d4a7cfd63
commit
183ce877e3
2 changed files with 17 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
];
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
settings = {
|
||||
theme = "tokyonight";
|
||||
editor = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue