-
For example, say I've got a keymap configured with {
'<leader><leader>',
'<cmd>FzfLua git_files<cr>',
}, Is it possible to create a keymap to toggle between the |
Beta Was this translation helpful? Give feedback.
Answered by
nenahp
Apr 6, 2025
Replies: 1 comment
-
local function toggle_git_files()
require('fzf-lua').files({
actions = {
['ctrl-g'] = {
fn = function()
require('fzf-lua').git_files({
actions = { ['ctrl-g'] = { fn = toggle_git_files, exec_silent = true } },
})
end,
exec_silent = true,
},
},
})
end
toggle_git_files() Actually this can be achieved by |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdjohns
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually this can be achieved by
["ctrl-g"] = require('fzf-lua').actions.toggle_ignore
. The default binding isalt-i