Compare commits

...

4 commits

Author SHA1 Message Date
Marlon Rosenberg
43843da230 add example to lsp package 2025-03-25 22:28:08 +00:00
Marlon Rosenberg
d92b3f3714 correct ordering 2025-03-25 22:16:20 +00:00
raf
2aa1879996
Update rl-0.8.md 2025-03-25 21:40:13 +00:00
Marlon Rosenberg
d6a310252f languages/fsharp: resolve comments 2025-03-25 19:42:50 +00:00
3 changed files with 7 additions and 5 deletions

View file

@ -82,6 +82,7 @@ isMaximal: {
elixir.enable = false; elixir.enable = false;
haskell.enable = false; haskell.enable = false;
ruby.enable = false; ruby.enable = false;
fsharp.enable = false;
tailwind.enable = false; tailwind.enable = false;
svelte.enable = false; svelte.enable = false;

View file

@ -277,6 +277,6 @@
- `eslint_d` now checks for configuration files to load. - `eslint_d` now checks for configuration files to load.
[Sc3l3t0n](https://github.com/Sc3l3t0n) [Sc3l3t0n](https://github.com/Sc3l3t0n):
- Add F# support under `vim.languages.fsharp`. - Add F# support under `vim.languages.fsharp`.

View file

@ -60,30 +60,31 @@ in {
lsp = { lsp = {
enable = mkEnableOption "F# LSP support" // {default = config.vim.languages.enableLSP;}; enable = mkEnableOption "F# LSP support" // {default = config.vim.languages.enableLSP;};
server = mkOption { server = mkOption {
description = "F# LSP server to use";
type = enum (attrNames servers); type = enum (attrNames servers);
default = defaultServer; default = defaultServer;
description = "F# LSP server to use";
}; };
package = mkOption { package = mkOption {
description = "F# LSP server package, or the command to run as a list of strings";
type = either package (listOf str); type = either package (listOf str);
default = servers.${cfg.lsp.server}.package; default = servers.${cfg.lsp.server}.package;
example = ''[lib.getExe pkgs.fsautocomplete "--state-directory" "~/.cache/fsautocomplete"]'';
description = "F# LSP server package, or the command to run as a list of strings";
}; };
}; };
format = { format = {
enable = mkEnableOption "F# formatting" // {default = config.vim.languages.enableFormat;}; enable = mkEnableOption "F# formatting" // {default = config.vim.languages.enableFormat;};
type = mkOption { type = mkOption {
description = "F# formatter to use";
type = enum (attrNames formats); type = enum (attrNames formats);
default = defaultFormat; default = defaultFormat;
description = "F# formatter to use";
}; };
package = mkOption { package = mkOption {
description = "F# formatter package";
type = package; type = package;
default = formats.${cfg.format.type}.package; default = formats.${cfg.format.type}.package;
description = "F# formatter package";
}; };
}; };
}; };