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:
parent
5261eb330b
commit
ed18649e94
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue