From 16fadf9e0d53cf65a954486952ac3eba36d46788 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 2 Mar 2024 16:50:55 +0530 Subject: [PATCH] add stl order/modules opts --- lua/core/init.lua | 5 +++-- lua/nvconfig.lua | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index 59eaf75..c33320a 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -89,8 +89,9 @@ autocmd("BufWritePost", { -- statusline if config.ui.statusline.theme ~= "custom" then - require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme) - vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()" + require("plenary.reload").reload_module "nvchad.stl.utils" + require("plenary.reload").reload_module("nvchad.stl." .. config.ui.statusline.theme) + vim.opt.statusline = "%!v:lua.require('nvchad.stl." .. config.ui.statusline.theme .. "')()" end -- tabufline diff --git a/lua/nvconfig.lua b/lua/nvconfig.lua index bfaebc7..32112ae 100644 --- a/lua/nvconfig.lua +++ b/lua/nvconfig.lua @@ -26,10 +26,13 @@ M.ui = { ------------------------------- nvchad_ui modules ----------------------------- statusline = { theme = "default", -- default/vscode/vscode_colored/minimal + -- default/round/block/arrow separators work only for default statusline theme -- round and block will work for minimal theme only separator_style = "default", - overriden_modules = nil, + + order = nil, + modules = nil, }, -- lazyload it when there are 1+ buffers