From 58cf1f53bcc997d610ad14a1e099d5a237faa790 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:48:32 +0700 Subject: [PATCH] feat(nvim): add scrolling keymap to fzf --- configs/nvim/lua/plugin/navigation/fzf.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configs/nvim/lua/plugin/navigation/fzf.lua b/configs/nvim/lua/plugin/navigation/fzf.lua index 120a6e1..29f8ade 100644 --- a/configs/nvim/lua/plugin/navigation/fzf.lua +++ b/configs/nvim/lua/plugin/navigation/fzf.lua @@ -29,13 +29,20 @@ registry.install { keymap = { builtin = { [''] = 'toggle-preview', + [''] = 'preview-page-up', + [''] = 'preview-page-down', + [''] = 'preview-up', + [''] = 'preview-down', }, fzf = { - ['ctrl-u'] = 'half-page-up', - ['ctrl-d'] = 'half-page-down', + ['ctrl-b'] = 'half-page-up', + ['ctrl-f'] = 'half-page-down', + ['ctrl-u'] = 'preview-half-page-up', + ['ctrl-d'] = 'preview-half-page-down', ['ctrl-a'] = 'beginning-of-line', ['ctrl-e'] = 'end-of-line', ['alt-q'] = 'select-all+accept', + ['ctrl-/'] = 'toggle-preview', } }, actions = {