diff --git a/lua/lvim/core/autocmds.lua b/lua/lvim/core/autocmds.lua index 64e92615..f7ec7ebc 100644 --- a/lua/lvim/core/autocmds.lua +++ b/lua/lvim/core/autocmds.lua @@ -71,7 +71,11 @@ function M.load_defaults() { group = "_auto_resize", pattern = "*", - command = "tabdo wincmd =", + command = [[ + let _auto_resize_current_tab = tabpagenr() + tabdo wincmd = + execute 'tabnext' _auto_resize_current_tab + ]], }, }, {