Remove fzf
This commit is contained in:
@@ -284,28 +284,6 @@ let NERDCreateDefaultMappings=0
|
||||
let g:haddock_browser='/usr/bin/firefox'
|
||||
let g:haddock_browser_callformat='%s file://%s >/dev/null 2>&1 &'
|
||||
|
||||
" fzf
|
||||
" --column: Show column number
|
||||
" --line-number: Show line number
|
||||
" --no-heading: Do not show file headings in results
|
||||
" --fixed-strings: Search term as a literal string
|
||||
" --ignore-case: Case insensitive search
|
||||
" --no-ignore: Do not respect .gitignore, etc...
|
||||
" --hidden: Search hidden files and folders
|
||||
" --follow: Follow symlinks
|
||||
" --glob: Additional conditions for search (in this case ignore everything in the .git/ folder)
|
||||
" --color: Search color options
|
||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||
|
||||
function! WithGitRoot()
|
||||
let groot = systemlist('git -C ' . expand('%:p:h') . ' rev-parse --show-toplevel')[0]
|
||||
return v:shell_error ? {} : {'dir': groot}
|
||||
endfunction
|
||||
|
||||
command! -nargs=* Rag
|
||||
\ call fzf#vim#ag(<q-args>, WithGitRoot())
|
||||
|
||||
|
||||
" fastfold
|
||||
let g:fastfold_savehook = 1
|
||||
let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C']
|
||||
|
||||
Reference in New Issue
Block a user