editor/zed: add fsharp

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-22 09:52:57 +03:00
parent 30fcac5ff6
commit 9d51e09afe

View File

@ -16,7 +16,8 @@ in {
enable = true; enable = true;
extensions = [ extensions = [
"nix" "nix"
"latex" "fsharp"
# "latex"
"typst" "typst"
"justfile" "justfile"
]; ];
@ -24,9 +25,14 @@ in {
vim_mode = true; vim_mode = true;
ui_font_size = mkForce 16; ui_font_size = mkForce 16;
buffer_font_size = mkForce 16; buffer_font_size = mkForce 16;
features = {inline_completion_provider = "none";}; # features = {inline_completion_provider = "none";};
auto_update = false; auto_update = false;
languages = { languages = {
"FSharp" = {
language-servers = [
"fsautocomplete"
];
};
"Nix" = { "Nix" = {
language-servers = [ language-servers = [
"!nil" "!nil"
@ -67,6 +73,18 @@ in {
}; };
}; };
lsp = { lsp = {
fsautocomplete = {
binary = {
path = getExe pkgs.fsautocomplete;
};
settings = {
AutomaticWorkspaceInit = true;
FSharp.ExternalAutocomplete = true;
FSharp.linting.fsharplint.enabled = true;
FSharp.linting.fsharplint.configFile = "fsharplint.json";
FSharp.formatting.fantomas.enabled = true;
};
};
clangd = { clangd = {
binary = { binary = {
arguments = []; arguments = [];
@ -92,19 +110,19 @@ in {
}; };
initialization_options.formatting.command = [(getExe pkgs.alejandra)]; initialization_options.formatting.command = [(getExe pkgs.alejandra)];
}; };
nil = { # nil = {
binary = { # binary = {
arguments = []; # arguments = [];
path = getExe pkgs.nil; # path = getExe pkgs.nil;
}; # };
initialization_options.formatting.command = [(getExe pkgs.alejandra)]; # initialization_options.formatting.command = [(getExe pkgs.alejandra)];
}; # };
texlab = { # texlab = {
binary = { # binary = {
arguments = []; # arguments = [];
path = getExe pkgs.texlab; # path = getExe pkgs.texlab;
}; # };
}; # };
tinymist = { tinymist = {
binary = { binary = {
arguments = []; arguments = [];