bug: loading fugitive with cmd = "Git"
throws error when passed multiple arguments
#659
Closed
3 tasks done
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.0-dev-1167+gddd257f75-dirty
Operating system/version
MacOS 13.2.1
Describe the bug
When configuring the tpope/vim-fugitive plugin to lazy-load on the
:Git
command, I get an error when passing more than 1 argument. This looks like it's caused by passingevent.fargs
as theargs
property tovim.cmd
here, while fugitive (and maybe others?) are expecting{ event.args }
Current behavior:
:Git restore %
->vim.cmd({ cmd = "Git", args = { "restore", "%" }
->Running the command a 2nd time after the error appears works as expected
Steps To Reproduce
:Git status --short
Expected Behavior
Fugitive command should execute first try without error. I'm not sure if
event.fargs
should be changed to{ event.args }
incmd.lua
, since maybe other plugins work differently. But maybe a config could be added for thecmd
field to specify combining arguments?e.g.
The text was updated successfully, but these errors were encountered: