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
1 changed files with 4 additions and 2 deletions
|
@ -93,8 +93,10 @@ autocmd("BufWritePost", {
|
||||||
vim.g.transparency = config.ui.transparency
|
vim.g.transparency = config.ui.transparency
|
||||||
|
|
||||||
-- statusline
|
-- statusline
|
||||||
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
|
if config.ui.statusline.theme ~= "custom" then
|
||||||
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()"
|
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
|
||||||
|
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 a new issue