From 6f774fb861e5e3ce20743e76a6443bd69a0e8300 Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:35:19 +0100 Subject: [PATCH] fix gitsigns --- lua/plugins/gitsigns.lua | 13 +++++++++++++ lua/plugins/neogit.lua | 1 + 2 files changed, 14 insertions(+) diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 01db795..2d47156 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -51,5 +51,18 @@ return { -- Adds git related signs to the gutter, as well as utilities for manag col = 1, }, } + + vim.api.nvim_create_autocmd('User', { + pattern = 'FugitiveChanged', + callback = function() + require('gitsigns').refresh() + end, + }) + + -- vim.api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' }, { + -- callback = function() + -- require('gitsigns').refresh() + -- end, + -- }) end, } diff --git a/lua/plugins/neogit.lua b/lua/plugins/neogit.lua index 87eef4c..bcd010d 100644 --- a/lua/plugins/neogit.lua +++ b/lua/plugins/neogit.lua @@ -78,6 +78,7 @@ return { -- is also selected then telescope is used instead -- Requires you to have `folke/snacks.nvim` installed. snacks = false, + gitsigns = true, }, mappings = { -- 2.51.2