kakrc: agregar comando grep y usar ripgrep

This commit is contained in:
Cat /dev/Nulo 2021-12-21 12:02:33 -03:00
parent 0a57c42d6b
commit 887415e48a

View file

@ -93,7 +93,17 @@ source "%val{config}/plugins/fzf.kak/rc/fzf.kak"
evaluate-commands %sh{ evaluate-commands %sh{
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \; find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
} }
map global user f ': fzf-mode<ret>f' 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-mode<ret>f'
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
# ------------ # ------------
# Buffer switching # Buffer switching