mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-27 04:04:58 +08:00
add show root cmd
This commit is contained in:
parent
6a59c2b857
commit
f0b59677aa
1 changed files with 5 additions and 1 deletions
|
|
@ -90,5 +90,9 @@ fun! s:RgHasFile(path)
|
|||
return filereadable(a:path) || isdirectory(a:path)
|
||||
endfun
|
||||
|
||||
fun! s:RgShowRoot()
|
||||
echo s:RgRootDir()
|
||||
endfun
|
||||
|
||||
command! -nargs=* Rg :call s:Rg(<q-args>)
|
||||
command! RgDir :call s:RgRootDir()
|
||||
command! RgRoot :call s:RgShowRoot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue