You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been having issues with telescope code-actions menu. Whenever I select anything on the menu, I get the following
|| E5108: Error executing lua ...cker/start/telescope.nvim/lua/telescope/actions/init.lua:29: Key does not exist for 'telescope.actions': get_selected_entry
|| stack traceback:
|| [C]: in function 'error'
|| ...cker/start/telescope.nvim/lua/telescope/actions/init.lua:29: in function '__index'
|| /home/adgai/.config/nvim/ftplugin/java.lua:22: in function 'run_replace_or_original'
|| ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:30: in function 'key_func'
|| ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:235: in function 'execute_keymap'
|| [string ":lua"]:1: in main chunk
the picker function I am using is
local finders = require("telescope.finders")
local sorters = require("telescope.sorters")
local actions = require("telescope.actions")
local pickers = require("telescope.pickers")
require("jdtls.ui").pick_one_async = function(items, prompt, label_fn, cb)
local opts = {}
pickers.new(require("telescope.themes").get_dropdown(opts), {
prompt_title = prompt,
finder = finders.new_table({
results = items,
entry_maker = function(entry)
return {
value = entry,
display = label_fn(entry),
ordinal = label_fn(entry),
}
end,
}),
sorter = sorters.get_generic_fuzzy_sorter(),
attach_mappings = function(prompt_bufnr)
actions.select_default:replace(function()
local selection = actions.get_selected_entry(prompt_bufnr)
actions.close(prompt_bufnr)
cb(selection.value)
end)
return true
end,
}):find()
end
Has anyone run into this issue before?
edit: I think that this issue it telescope picker specific as fzy picker does not seem to recreate the same issue for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been having issues with telescope code-actions menu. Whenever I select anything on the menu, I get the following
the picker function I am using is
Has anyone run into this issue before?
edit: I think that this issue it telescope picker specific as fzy picker does not seem to recreate the same issue for me.
Beta Was this translation helpful? Give feedback.
All reactions