codeaction not working
RobertBrunhage opened this issue · 3 comments
RobertBrunhage commented
commit 0fc69eb introduced the following issue for me with codeaction:
Error executing vim.schedule lua callback: ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:33: attempt to index field 'ctx' (a nil value)
stack traceback:
...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:33: in function <...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:23>
...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:106: in function 'select'
/usr/local/share/nvim/runtime/lua/vim/lsp/buf.lua:687: in function 'on_code_action_results'
/usr/local/share/nvim/runtime/lua/vim/lsp/buf.lua:703: in function 'handler'
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:2214: in function 'handler'
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1516: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
config:
require("telescope").setup({
defaults = require("telescope.themes").get_dropdown({
file_sorter = require("telescope.sorters").get_fzy_sorter,
file_previewer = require("telescope.previewers").vim_buffer_cat.new,
grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
mappings = {
i = {
["<C-x>"] = false,
},
},
}),
extensions = {
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
},
["ui-select"] = {
specific_opts = {
codeactions = false,
},
},
},
})
require("telescope").load_extension("fzy_native")
require("telescope").load_extension("live_grep_args")
require("telescope").load_extension("ui-select")
archaengel commented
I think this is #29, in which case updating the latest nightly or stable 0.9 should solve it
sharksforarms commented
Confirmed that the latest nvim (I built from master) solves this
NVIM v0.10.0-dev-1758+g145727272
Build type: RelWithDebInfo
LuaJIT 2.1.1700008891
RobertBrunhage commented
Sorry late response, yep that solved it, running on latest nightly now!