add stl order/modules opts

This commit is contained in:
siduck 2024-03-02 16:50:55 +05:30
parent 960509e585
commit 16fadf9e0d
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -26,10 +26,13 @@ M.ui = {
------------------------------- nvchad_ui modules ----------------------------- ------------------------------- nvchad_ui modules -----------------------------
statusline = { statusline = {
theme = "default", -- default/vscode/vscode_colored/minimal theme = "default", -- default/vscode/vscode_colored/minimal
-- default/round/block/arrow separators work only for default statusline theme -- default/round/block/arrow separators work only for default statusline theme
-- round and block will work for minimal theme only -- round and block will work for minimal theme only
separator_style = "default", separator_style = "default",
overriden_modules = nil,
order = nil,
modules = nil,
}, },
-- lazyload it when there are 1+ buffers -- lazyload it when there are 1+ buffers