Add CSharp language and refine Nix LSP settings
- Define CSharp language with format_on_save, tab_size, and servers - Expand Nix language configuration with formatter and tab settings - Simplify nixd LSP config by removing redundant initialization options
This commit is contained in:
1 parent
8c1e1dec3a
commit
72f67e1888
3 files changed
+16
-9
No files matched your search
@@ -37,3 +37,4 @@ in
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
# https://github.com/imputnet/helium-linux/releases/download/0.11.7.1/helium-0.11.7.1-x86_64.AppImage
|
# https://github.com/imputnet/helium-linux/releases/download/0.11.7.1/helium-0.11.7.1-x86_64.AppImage
|
||||||
|
|
||||||
@@ -1,9 +1,17 @@
|
|||||||
_: {
|
_: {
|
||||||
programs.zed-editor.userSettings.languages = {
|
programs.zed-editor.userSettings.languages = {
|
||||||
Nix.language_servers = [
|
Nix = {
|
||||||
|
format_on_save = "on";
|
||||||
|
tab_size = 2;
|
||||||
|
language_servers = [
|
||||||
"nixd"
|
"nixd"
|
||||||
"!nil"
|
"!nil"
|
||||||
];
|
];
|
||||||
|
formatter.external = {
|
||||||
|
command = "alejandra";
|
||||||
|
arguments = ["--quiet" "--"];
|
||||||
|
};
|
||||||
|
};
|
||||||
Python = {
|
Python = {
|
||||||
format_on_save = "off";
|
format_on_save = "off";
|
||||||
formatter.language_server.name = "ruff";
|
formatter.language_server.name = "ruff";
|
||||||
@@ -85,5 +93,10 @@ _: {
|
|||||||
format_on_save = "on";
|
format_on_save = "on";
|
||||||
tab_size = 2;
|
tab_size = 2;
|
||||||
};
|
};
|
||||||
|
CSharp = {
|
||||||
|
format_on_save = "on";
|
||||||
|
tab_size = 2;
|
||||||
|
language_servers = ["!csharp-ls" "!roslyn" "omnisharp"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -123,13 +123,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixd = {
|
nixd.settings = {
|
||||||
initialization_options.formatting.command = [
|
|
||||||
"alejandra"
|
|
||||||
"--quiet"
|
|
||||||
"--"
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
nixpkgs.expr = "import <nixpkgs> { }";
|
nixpkgs.expr = "import <nixpkgs> { }";
|
||||||
formatting.command = ["alejandra"];
|
formatting.command = ["alejandra"];
|
||||||
options = {
|
options = {
|
||||||
@@ -137,7 +131,6 @@
|
|||||||
home-manager.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options.home-manager.users.type.getSubOptions []";
|
home-manager.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options.home-manager.users.type.getSubOptions []";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
ruff = {
|
ruff = {
|
||||||
binary = {
|
binary = {
|
||||||
path = lib.getExe pkgs.bash;
|
path = lib.getExe pkgs.bash;
|
||||||
|
|||||||
Reference in new issue
Block a user