chore: preset enable docs

This commit is contained in:
Snoweuph 2026-04-13 08:34:26 +02:00
commit a3aa4e49d1
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
75 changed files with 252 additions and 228 deletions

View file

@ -5,10 +5,12 @@
typesDag = import ./dag.nix {inherit lib;};
typesPlugin = import ./plugins.nix {inherit lib self;};
typesLanguage = import ./languages.nix {inherit lib;};
typesLsp = import ./lsp.nix {inherit lib;};
customTypes = import ./custom.nix {inherit lib;};
in {
inherit (typesDag) dagOf;
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType borderType;
inherit (typesLanguage) diagnostics mkGrammarOption;
inherit (typesLsp) mkLspPresetEnableOption;
inherit (customTypes) char hexColor mergelessListOf deprecatedSingleOrListOf;
}

12
lib/types/lsp.nix Normal file
View file

@ -0,0 +1,12 @@
{lib}: let
inherit (lib.options) mkEnableOption;
mkLspPresetEnableOption = option: display: fileTypes:
mkEnableOption ''
the ${display} Language Server.
Default `filetypes = ${lib.generators.toPretty {} fileTypes}`.
Use {option}`vim.lsp.servers.${option}` for customization
'';
in {
inherit mkLspPresetEnableOption;
}