From 0e27cb4b44fbba69f8646d1f88555737d2b6aedf Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 26 Jul 2023 09:58:01 +0530 Subject: [PATCH] dont reload tabufline if its disabled #2236 --- lua/core/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index a30dfd3..8342fb2 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -97,8 +97,10 @@ autocmd("BufWritePost", { vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. config.ui.statusline.theme .. "').run()" -- tabufline - require("plenary.reload").reload_module "nvchad_ui.tabufline.modules" - vim.opt.tabline = "%!v:lua.require('nvchad_ui.tabufline.modules').run()" + if config.ui.tabufline.enabled then + require("plenary.reload").reload_module "nvchad_ui.tabufline.modules" + vim.opt.tabline = "%!v:lua.require('nvchad_ui.tabufline.modules').run()" + end require("base46").load_all_highlights() -- vim.cmd("redraw!")