From 028bdc522c070fe80bb75c3086610748eacf7a82 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 5 Apr 2025 23:17:18 +0300 Subject: [PATCH] lib/languages: add explicit enable to LSP submodule --- lib/languages.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/languages.nix b/lib/languages.nix index d7e30394..24a37856 100644 --- a/lib/languages.nix +++ b/lib/languages.nix @@ -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";