Skip to content

Commit

Permalink
fix(lsp_code_actions): assertion with nightly (closes #947)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 10, 2023
1 parent 4fae64e commit 0fde123
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/fzf-lua/previewer/codeaction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ end

-- https://github.com/neovim/neovim/blob/v0.9.4/runtime/lua/vim/lsp/buf.lua#L666
local function preview_action_tuple(tuple, diff_opts, callback)
-- neovim changed the ui.select params with 0.10.0 (#947)
-- { client_id, action } ==> { ctx = <LSP context>, action = <action> }
if tuple.ctx then
tuple = { tuple.ctx.client_id, tuple.action }
end
local client = assert(vim.lsp.get_client_by_id(tuple[1]))
local action = tuple[2]
if
Expand Down

0 comments on commit 0fde123

Please sign in to comment.