Skip to content

Commit

Permalink
refactor(nvim): custom bindings for fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Mar 21, 2024
1 parent acf9b60 commit 7578ca5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configs/nvim/lua/plugin/navigation/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ registry.install {
'nvim-tree/nvim-web-devicons'
},
config = function ()
local actions = require('fzf-lua.actions')
require('fzf-lua').setup {
winopts = {
height = 0.9,
Expand All @@ -31,6 +32,17 @@ registry.install {
fzf = {
['ctrl-u'] = 'half-page-up',
['ctrl-d'] = 'half-page-down',
['ctrl-a'] = 'beginning-of-line',
['ctrl-e'] = 'end-of-line',
}
},
actions = {
files = {
['default'] = actions.file_edit_or_qf,
['ctrl-s'] = actions.file_split,
['ctrl-v'] = actions.file_vsplit,
['ctrl-t'] = actions.file_tabedit,
['ctrl-q'] = actions.file_sel_to_qf
}
}
}
Expand Down

0 comments on commit 7578ca5

Please sign in to comment.