From ba745ba281c02b12dc898de9e652a408c48b2bbe Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 30 Sep 2025 18:16:03 +0200 Subject: [PATCH] fix(picker.lsp_config): cmd can be a function --- lua/snacks/picker/source/lsp/config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/snacks/picker/source/lsp/config.lua b/lua/snacks/picker/source/lsp/config.lua index 38bc2d25..34aceede 100644 --- a/lua/snacks/picker/source/lsp/config.lua +++ b/lua/snacks/picker/source/lsp/config.lua @@ -220,7 +220,8 @@ function M.preview(ctx) end if item.cmd then - lines[#lines + 1] = "- **cmd**: `" .. table.concat(item.cmd, " ") .. "`" + local cmd = type(item.cmd) == "function" and "" or table.concat(item.cmd, " ") + lines[#lines + 1] = "- **cmd**: `" .. cmd .. "`" end if item.installed then