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