mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 03:47:37 +00:00
chore: preset enable docs
This commit is contained in:
parent
c5a83d3a6a
commit
a3aa4e49d1
75 changed files with 252 additions and 228 deletions
|
|
@ -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
12
lib/types/lsp.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue