mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker.lsp_config): cmd can be a function
This commit is contained in:
parent
ff3c49a19a
commit
ba745ba281
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue