Description
Hi, thank you very much for a very useful plugin. I'm trying to make a custom command that would work with https://github.com/ahmedkhalf/project.nvim. What i did currently is this:
vim.keymap.set('n', '\\p',
function()
local history = require("project_nvim.utils.history")
local results = history.get_recent_projects()
fzf_lua.fzf_exec(results, {
actions = {
['default'] = {
function(selected)
fzf_lua.files({ cwd = selected[1] })
end,
},
['ctrl-d'] = {
function(selected)
history.delete_project({ value = selected[1] })
end,
fzf_lua.actions.resume -- How to rerun everything with refreshed results?
}
}
})
end,
opts)
I don't understand how to rerun the whole thing without closing the current fzf-lua window with refreshed results. The use case is when i press ctrl-d
to delete the entry from the history file. This is done via history.delete_project
function. After the entry was deleted i would like to still see the fzf-lua screen but with refreshed list, which comes from history.get_recent_projects()
function. Right now i do fzf_lua.actions.resume
to keep the lua screen opened, but i don't know how to refresh the data inside the list. Could you please help? Thank you very much in advance.