Open hejops opened 6 months ago
Also seeing this on nvim 0.10.1. Curious what you mean when you say "from insert mode". Do you mean insert mode of the file, or Telescope's input field? Because I'm seeing it regardless of either.
https://github.com/user-attachments/assets/8ea9a327-5ed7-4788-a04b-3f505cd7d07f
Thanks for confirming. I forgot I had filed this issue since it was so long ago, and I stopped using this plugin since I never found a compelling use case for it, outside of code actions (which I'm not a regular user of).
In any case, after checking it out again, the previously observed error still occurs, regardless of which mode vim.lsp.buf.code_action
was invoked in (normal/insert), and the value of initial_mode
.
From grokking the source of code_action
, I think it returns a table of vim.lsp.CodeActionResultEntry
, but ui-select
expects a table of string
, resulting in the error.
Minimal config (as per README):
Then, in some language/file/line with support for code actions (e.g. Go), call:
The following error is produced, regardless of
initial_mode
value: