fix(picker.lsp_config): cmd can be a function

This commit is contained in:
Folke Lemaitre 2025-09-30 18:16:03 +02:00
parent ff3c49a19a
commit ba745ba281
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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 "<function>" or table.concat(item.cmd, " ")
lines[#lines + 1] = "- **cmd**: `" .. cmd .. "`"
end
if item.installed then