mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
languages: add and move to mkServersOption
This commit is contained in:
parent
0e433e9241
commit
d47a771d19
35 changed files with 89 additions and 224 deletions
|
@ -10,7 +10,7 @@
|
|||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) bool enum package listOf str nullOr;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.types) diagnostics mkGrammarOption mkPluginSetupOption;
|
||||
inherit (lib.nvim.types) diagnostics mkGrammarOption mkPluginSetupOption mkServersOption;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
|
||||
|
@ -60,12 +60,7 @@ in {
|
|||
|
||||
lsp = {
|
||||
enable = mkEnableOption "Markdown LSP support" // {default = config.vim.lsp.enable;};
|
||||
|
||||
servers = mkOption {
|
||||
description = "Markdown LSP servers to use";
|
||||
type = listOf (enum (attrNames servers));
|
||||
default = defaultServers;
|
||||
};
|
||||
servers = mkServersOption "Markdown" servers defaultServers;
|
||||
};
|
||||
|
||||
format = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue