From 6c3ac32a12c48a18440261abafdd7e2afe67fdb7 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 15 Apr 2025 22:56:20 +0200 Subject: [PATCH] fix(neo-tree): don't change focus on startup --- lua/plugins/neo-tree.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index 94caf67..4d5d44d 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -148,11 +148,5 @@ return { }, }, }, - 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, + init = toggle_neo_tree, }