mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
chore: preset enable docs
This commit is contained in:
parent
c5a83d3a6a
commit
a3aa4e49d1
75 changed files with 252 additions and 228 deletions
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