Added new default fzf command

This commit is contained in:
Marcin Woźniak 2021-08-08 23:20:45 +02:00
parent 966bbab098
commit ae6b57ae29
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -106,6 +106,7 @@ set statusline+=\ %l/%L
set statusline+=\ [%c]
" fzf
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*"'
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
set grepprg=rg\ --vimgrep