Last active
October 15, 2019 02:47
-
-
Save liquidz/dbe5936cb19d55799d1ecf0d470b7438 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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