dont reload tabufline if its disabled #2236

This commit is contained in:
siduck 2023-07-26 09:58:01 +05:30
parent 682b023fb3
commit 0e27cb4b44
1 changed files with 4 additions and 2 deletions

View File

@ -97,8 +97,10 @@ autocmd("BufWritePost", {
vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. config.ui.statusline.theme .. "').run()" vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. config.ui.statusline.theme .. "').run()"
-- tabufline -- tabufline
require("plenary.reload").reload_module "nvchad_ui.tabufline.modules" if config.ui.tabufline.enabled then
vim.opt.tabline = "%!v:lua.require('nvchad_ui.tabufline.modules').run()" 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() require("base46").load_all_highlights()
-- vim.cmd("redraw!") -- vim.cmd("redraw!")