fix(telescope): codeactions error in Neovim nightly (#126)

This commit is contained in:
Steven Arcangeli 2023-11-07 05:38:05 +00:00
parent 1f2d1206a0
commit fe3071330a
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@ M.custom_kind = {
local text_width = 1
local idx_width = 1
for idx, item in ipairs(items) do
local client_id = item[1]
local client_id
if vim.fn.has("nvim-0.10") == 1 then
client_id = item.ctx.client_id
else
client_id = item[1]
end
local client_name = vim.lsp.get_client_by_id(client_id).name
local text = opts.format_item(item)