mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-27 04:04:58 +08:00
show cwd unless derive
This commit is contained in:
parent
2b6700c2aa
commit
c7e5c821ce
1 changed files with 5 additions and 1 deletions
|
|
@ -91,7 +91,11 @@ fun! s:RgHasFile(path)
|
|||
endfun
|
||||
|
||||
fun! s:RgShowRoot()
|
||||
echo s:RgRootDir()
|
||||
if exists('g:rg_derive_root')
|
||||
echo s:RgRootDir()
|
||||
else
|
||||
echo getcwd()
|
||||
endif
|
||||
endfun
|
||||
|
||||
command! -nargs=* Rg :call s:Rg(<q-args>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue