Congratulations, you have found a bug in a FOSS program. Next step is to either notify the maintainer via their issue tracker or, if you know how to fix it, submit a patch.
Case in point, the author assigns a completion method, -complete=file
, but custom commands like :RgRoot
don't accept arguments by default so the command makes no sense as-is: you can't complete arguments if you can't pass arguments.
It only needs a -nargs=*
, like its upstairs neighbour, :Rg
, to work properly and the error message is pretty clear about it:
line 149: E1208: -complete used without -nargs
See :help -complete
, :help -nargs
, and more generally, :help user-commands
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…