Skip to content

Commit

Permalink
add fzf keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Sep 9, 2024
1 parent 9ad93f1 commit 11ab3d0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .config/nvim/lua/plugins/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ return {
utils.err(msg)
end
end,
reload = true,
reload = false,
header = 'switch',
},
['ctrl-y'] = {
fn = function(selected)
local branch = selected[1]
vim.fn.setreg('+', branch)
utils.info('Yanked branch name ' .. branch)
end,
reload = false,
header = 'yank branch name',
},
['ctrl-r'] = {
fn = function(selected)
local branch = selected[1]
Expand Down

0 comments on commit 11ab3d0

Please sign in to comment.