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 = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "tokyonight";
|
theme = "tokyonight";
|
||||||
editor = {
|
editor = {
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue