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 = {