From 887415e48aa88e30932183925d838d47b4c37743 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 21 Dec 2021 12:02:33 -0300 Subject: [PATCH] kakrc: agregar comando grep y usar ripgrep --- .config/kak/kakrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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