diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim index 9bc029d..1367ded 100644 --- a/plugin/vim-ripgrep.vim +++ b/plugin/vim-ripgrep.vim @@ -145,5 +145,5 @@ fun! s:RgShowRoot() endif endfun -command! -nargs=* -complete=file Rg :call s:Rg() -command! -complete=file RgRoot :call s:RgShowRoot() +command! -nargs=? -complete=file Rg :call s:Rg() +command! -nargs=? -complete=file RgRoot :call s:RgShowRoot()