diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim index 73d89ec..e4f649c 100644 --- a/plugin/vim-ripgrep.vim +++ b/plugin/vim-ripgrep.vim @@ -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() -command! RgDir :call s:RgRootDir() +command! RgRoot :call s:RgShowRoot()