From b3c7da147a4ffcd077770dfa77fcbcf6241268c3 Mon Sep 17 00:00:00 2001 From: Jon Leopard Date: Sat, 8 Jul 2023 12:14:43 -0700 Subject: [PATCH] quickfix: fixed fugitive pull/rebase command. Invoking "P" caused the following error: `E5108: Error executing lua: ...jon/dotfiles/nvim/.config/nvim/after/plugin/fugitive.lua:26: Wro ng number of arguments stack traceback: [C]: in function 'Git' ...jon/dotfiles/nvim/.config/nvim/after/plugin/fugitive.lua:26: in function <...jon/dot files/nvim/.config/nvim/after/plugin/fugitive.lua:25>` Using a single string seems to have fixed the issue. --- after/plugin/fugitive.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua index 41f0512b..08458acf 100644 --- a/after/plugin/fugitive.lua +++ b/after/plugin/fugitive.lua @@ -19,7 +19,7 @@ autocmd("BufWinEnter", { -- rebase always vim.keymap.set("n", "P", function() - vim.cmd.Git({'pull', '--rebase'}) + vim.cmd.Git({'pull --rebase'}) end, opts) -- NOTE: It allows me to easily set the branch i am pushing and any tracking