Skip to content

Instantly share code, notes, and snippets.

@liquidz
Last active October 15, 2019 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liquidz/dbe5936cb19d55799d1ecf0d470b7438 to your computer and use it in GitHub Desktop.
Save liquidz/dbe5936cb19d55799d1ecf0d470b7438 to your computer and use it in GitHub Desktop.
" autoload/clap/provider/rg_root_files.vim
" nnoremap <C-p> :<C-u>Clap rg_root_files ++externalfilter=fzf +async<CR>
let s:save_cpo = &cpoptions
set cpoptions&vim
let s:rg_root_files = {
\ 'sink': 'e',
\ 'enable_rooter': v:true,
\ }
if executable('rg')
let s:rg_root_files.source = 'rg --files --hidden'
else
let s:rg_root_files.source = ['rg executable not found']
endif
let g:clap#provider#rg_root_files# = s:rg_root_files
let &cpoptions = s:save_cpo
unlet s:save_cpo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment