lib/languages: add explicit enable to LSP submodule

This commit is contained in:
raf 2025-04-05 23:17:18 +03:00
parent 38da0b5813
commit 0f6518853e
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -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";