From 30ecd8a2257552ec3a594cbc4344daa9266d9212 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Thu, 24 Jul 2025 07:14:54 +0200 Subject: [PATCH] feat(fugitive): auto-reload on bufwrite --- lua/ow/plugins/fugitive.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/ow/plugins/fugitive.lua b/lua/ow/plugins/fugitive.lua index 705c737..dd168fc 100644 --- a/lua/ow/plugins/fugitive.lua +++ b/lua/ow/plugins/fugitive.lua @@ -70,4 +70,11 @@ return { mode = "n", }, }, + config = function() + vim.api.nvim_create_autocmd("BufWritePost", { + callback = function() + vim.fn["fugitive#ReloadStatus"]() + end, + }) + end, }