From b8f546bf7caeddad065bed0987e5320733d5958d Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 22 Jun 2025 17:15:20 +0200 Subject: [PATCH] lib/languages: fix lsp.servers.*.cmd concatenating --- lib/languages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/languages.nix b/lib/languages.nix index f4ab1cca..d66880a1 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 either nullOr oneOf; + inherit (lib.types) listOf bool str submodule attrsOf anything either nullOr uniq; inherit (lib.nvim.attrsets) mapListToAttrs; inherit (lib.nvim.types) luaInline; in { @@ -62,7 +62,7 @@ in { }; cmd = mkOption { - type = nullOr (either luaInline (listOf str)); + type = nullOr (either luaInline (uniq (listOf str))); default = null; description = "Command used to start the LSP server"; };