statusline: dont reload if theme is custom

this will prevent auto-reload of statusline , good for non custom statusline users
This commit is contained in:
siduck 2023-10-09 17:13:11 +05:30
parent 5261eb330b
commit ed18649e94
1 changed files with 4 additions and 2 deletions

View File

@ -93,8 +93,10 @@ autocmd("BufWritePost", {
vim.g.transparency = config.ui.transparency vim.g.transparency = config.ui.transparency
-- statusline -- statusline
if config.ui.statusline.theme ~= "custom" then
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme) require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()" vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()"
end
-- tabufline -- tabufline
if config.ui.tabufline.enabled then if config.ui.tabufline.enabled then