mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-13 16:18:36 +00:00
lib/languages: add explicit enable to LSP submodule
This commit is contained in:
parent
66f7be331a
commit
028bdc522c
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
{lib}: let
|
||||
inherit (builtins) isString getAttr;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) listOf bool str submodule attrsOf anything;
|
||||
inherit (lib.types) listOf bool str submodule;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
inherit (lib.nvim.types) luaInline;
|
||||
|
@ -35,8 +35,13 @@ in {
|
|||
};
|
||||
|
||||
lspOptions = submodule {
|
||||
freeformType = attrsOf anything;
|
||||
options = {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to enable this LSP server.";
|
||||
};
|
||||
|
||||
capabilities = mkOption {
|
||||
type = luaInline;
|
||||
default = mkLuaInline "capabilities";
|
||||
|
|
Loading…
Add table
Reference in a new issue