add show root cmd

This commit is contained in:
jremmen 2016-09-24 23:07:58 -07:00
parent 6a59c2b857
commit f0b59677aa

View file

@ -90,5 +90,9 @@ fun! s:RgHasFile(path)
return filereadable(a:path) || isdirectory(a:path) return filereadable(a:path) || isdirectory(a:path)
endfun endfun
fun! s:RgShowRoot()
echo s:RgRootDir()
endfun
command! -nargs=* Rg :call s:Rg(<q-args>) command! -nargs=* Rg :call s:Rg(<q-args>)
command! RgDir :call s:RgRootDir() command! RgRoot :call s:RgShowRoot()