From f04308f569dc6a80b1f9a5ce4508bbbebaef78f7 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 2 Sep 2022 12:55:27 +0530 Subject: [PATCH] nvim: plugins: Make packer not fetch/pull tags Upstream repos overwrite tags like release and then PackerSync complains about failing to update since existing tags would be clobbered after an update. --- nvim/.config/nvim/lua/plugins.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 98407a5..f216ef4 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -91,4 +91,13 @@ local init = function () use 'christoomey/vim-tmux-navigator' end -return require('packer').startup(init) +local config = { + git = { + subcommands = { + update = 'pull --ff-only --progress --rebase=false --no-tags', + fetch = 'fetch --depth 999999 --progress --no-tags', + } + } +} + +return require('packer').startup(init, config)