mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-26 19:45:29 +08:00
correct nargs errors for vim 8.2.3150+
https://github.com/vim/vim/pull/8544 introduced a change that displays an error when `nargs` is not defined and/or defined incorrectly. As a user, this will display an error message each time upon starting up. The error shows up as ``` Error detected while processing ~/.vim/plugged/vim-ripgrep/plugin/vim-ripgrep.vim: line 149: E1208: -complete used without -nargs Press ENTER or type command to continue ``` This fix to add `-nargs=?` to each of the `command`s. Fixes #57
This commit is contained in:
parent
ec87af6b69
commit
68ec5ba64d
1 changed files with 2 additions and 2 deletions
|
|
@ -145,5 +145,5 @@ fun! s:RgShowRoot()
|
|||
endif
|
||||
endfun
|
||||
|
||||
command! -nargs=* -complete=file Rg :call s:Rg(<q-args>)
|
||||
command! -complete=file RgRoot :call s:RgShowRoot()
|
||||
command! -nargs=? -complete=file Rg :call s:Rg(<q-args>)
|
||||
command! -nargs=? -complete=file RgRoot :call s:RgShowRoot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue