From 1a3ccfb60214077ac0bc5999c97691c3041fd535 Mon Sep 17 00:00:00 2001 From: Yuri Tretyakov Date: Sun, 18 Oct 2026 14:43:49 +0300 Subject: [PATCH] fix(#3366): fix git status reload after config migration The commit 3d385d3346e4883d60dc37cf642bd47bed78a46e (pull request #3295) removed `git.setup()` that populated the `git.config.git` table, but didn't replace all uses of `git.config.git` with the new `config.g.git` table. More specifically, it missed `Explorer:reload_git()`, which saw the empty `git.config.git` table and returned prematurely. Fix it by reading the config value from `config.g.git.enable`. --- lua/nvim-tree/explorer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/explorer/init.lua b/lua/nvim-tree/explorer/init.lua index 1ab6b136bfe..08ee47c5dd6 100644 --- a/lua/nvim-tree/explorer/init.lua +++ b/lua/nvim-tree/explorer/init.lua @@ -517,7 +517,7 @@ function Explorer:reload_explorer() end function Explorer:reload_git() - if not git.config.git or not git.config.git.enable or event_running then + if not config.g.git.enable or event_running then return end event_running = true