From 6fca39d2a9741eef5ffaa69d97b04121975cc605 Mon Sep 17 00:00:00 2001 From: Robin Clowers Date: Wed, 7 Jun 2017 09:35:34 -0700 Subject: [PATCH] Allow file path completion in the Rg command --- plugin/vim-ripgrep.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim index 3b6ad85..3df5aa4 100644 --- a/plugin/vim-ripgrep.vim +++ b/plugin/vim-ripgrep.vim @@ -112,5 +112,5 @@ fun! s:RgShowRoot() endif endfun -command! -nargs=* Rg :call s:Rg() -command! RgRoot :call s:RgShowRoot() +command! -nargs=* -complete=file Rg :call s:Rg() +command! -complete=file RgRoot :call s:RgShowRoot()