-
Is there a way to tell fzf-lua to keep executing the origin call of a picker? I am not sure how to explain so here's what I try to do: I made this action for when a file is selected: config.defaults.actions.files["default"] = function(selected, opts)
local entry = path.entry_to_file(selected[1], opts, opts._uri)
open_or_focus(entry.path)
end it will focus the selected file or open it if not found in the windows list. It worked well until I tried to use require("fzf-lua").lsp_document_symbols({
regex_filter = symbols_filter
}) I understand now the symbols picker is calling It would be good to have a way to tell lsp pickers apart from real file picker. Or at least a way to tell fzf-lua to disregard a particular execution, e.g. config.defaults.actions.files["default"] = function(selected, opts)
local entry = path.entry_to_file(selected[1], opts, opts._uri)
if opts.__INFO.cmd == "lsp_document_symbols" then
return false -- Nothing to see here
end
open_or_focus(entry.path)
end Ngl, I'm kinda stuck here and don't know how to fix that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Maybe I’m missing something but why don’t you use fzf-lua/lua/fzf-lua/actions.lua Line 371 in 175ddbb |
Beta Was this translation helpful? Give feedback.
Maybe I’m missing something but why don’t you use
actions.file_switch_or_edit
?fzf-lua/lua/fzf-lua/actions.lua
Line 371 in 175ddbb