fix(neo-tree): change focus to initial window on startup

This commit is contained in:
2025-04-14 00:38:17 +02:00
parent 131f96299d
commit 09f4829dbd
+7 -1
View File
@@ -99,5 +99,11 @@ return {
hijack_netrw_behavior = "disabled",
},
},
init = toggle_neo_tree,
init = function()
vim.defer_fn(function()
local winnr = vim.api.nvim_get_current_win()
toggle_neo_tree()
vim.api.nvim_set_current_win(winnr)
end, 100)
end,
}