-
I am trying to migrate from telescope to fzf-lua, in my telescope config file I have this: opts = function(_, opts)
local action_set = require("telescope.actions.set")
local builtins = require("telescope.builtin")
local picker_config = {}
for builtin, _ in pairs(builtins) do
picker_config[builtin] = {
-- Execute `zt` after selecting an entry from search results
attach_mappings = function(prompt_bufnr, _)
action_set.select:enhance({
post = function()
vim.cmd(":normal! zt")
end,
})
return true
end,
}
end
opts.pickers = vim.tbl_deep_extend("force", picker_config, {})
end, which will execute I wonder if it's possible to do that in fzf-lua too. |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Oct 3, 2024
Replies: 1 comment 1 reply
-
See the advanced Wiki, use the actions table to set the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vdegenne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the advanced Wiki, use the actions table to set the
enter
(or default) action and execute any code you want inside, you can then also call fzf-lua’sactions.file_edit
or any of the built in actions.