diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 2f545e5..970a2be 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -93,7 +93,17 @@ source "%val{config}/plugins/fzf.kak/rc/fzf.kak" evaluate-commands %sh{ find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \; } -map global user f ': fzf-modef' +hook global ModuleLoaded fzf %{ + set-option global fzf_preview_pos 'up' +} +hook global ModuleLoaded fzf-file %{ + set-option global fzf_file_command 'rg' +} +hook global ModuleLoaded fzf-grep %{ + set-option global fzf_grep_command 'rg' +} +map -docstring 'search files' global user f ': fzf-modef' +map -docstring 'grep files' global user g ': fzf-modeg' # ------------ # Buffer switching