From 7d13dadc09d4ad8eadaaf726724aba1251c985cd Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 30 Jan 2023 00:23:26 +1100 Subject: [PATCH] internal: Use classic Rg command --- Internal/os_nvim_init.vim | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Internal/os_nvim_init.vim b/Internal/os_nvim_init.vim index dab42f2..51ee6e3 100644 --- a/Internal/os_nvim_init.vim +++ b/Internal/os_nvim_init.vim @@ -293,15 +293,6 @@ let g:fzf_command_prefix = 'Fzf' " - down / up / left / right let g:fzf_layout = { 'down': '40%' } -" Add "FzfCustomRG" command which reinitializes -function! RipgrepFzf(query, fullscreen) - let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case -- %s || true' - let initial_command = printf(command_fmt, shellescape(a:query)) - let reload_command = printf(command_fmt, '{q}') - let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]} - call fzf#vim#grep(initial_command, 1, fzf#vim#with_preview(spec), a:fullscreen) -endfunction - command! -nargs=* -bang FzfCustomRG call RipgrepFzf(, 0) " Augment the "FzfCustomFiles" command @@ -313,7 +304,7 @@ command! -bang -nargs=? -complete=dir FzfCustomFiles " Telescope Bindings nnoremap h FzfHistory nnoremap f FzfCustomFiles -nnoremap g FzfCustomRG +nnoremap g FzfRg nnoremap tt FzfTags nnoremap tb FzfBTags nnoremap cc FzfCommits