From 1a3ccfb60214077ac0bc5999c97691c3041fd535 Mon Sep 17 00:00:00 2001 From: Yuri Tretyakov Date: Sun, 18 Oct 2026 14:43:49 +0300 Subject: [PATCH 1/2] 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 From 4b342b3e2437e0729db8b540b0b6f0ea7e9aa940 Mon Sep 17 00:00:00 2001 From: Yuri Tretyakov Date: Sun, 25 Oct 2026 20:55:30 +0300 Subject: [PATCH 2/2] amend! fix(#3366): fix git status reload after config migration 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`. Remove the creation of the empty `git.config.git` table, too. --- lua/nvim-tree/git/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/nvim-tree/git/init.lua b/lua/nvim-tree/git/init.lua index 84837287619..1078c2cd682 100644 --- a/lua/nvim-tree/git/init.lua +++ b/lua/nvim-tree/git/init.lua @@ -24,8 +24,6 @@ local DirectoryNode = require("nvim-tree.node.directory") ---@alias nvim_tree.git.ProjectDirs table<"direct" | "indirect", nvim_tree.git.PathXYs> local M = { - config = {}, - ---all projects keyed by toplevel ---@type table _projects_by_toplevel = {},