From 164e8cc7fcb9006a1edd4ddfc98bf8c7f4fe2e0d Mon Sep 17 00:00:00 2001 From: siduck Date: Thu, 6 Jun 2024 08:14:10 +0530 Subject: [PATCH] autocmd: rm un-needed reload code, just require("nvchad") --- lua/nvchad/autocmds.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lua/nvchad/autocmds.lua b/lua/nvchad/autocmds.lua index 03b27de..17588b0 100644 --- a/lua/nvchad/autocmds.lua +++ b/lua/nvchad/autocmds.lua @@ -23,21 +23,10 @@ autocmd("BufWritePost", { require("plenary.reload").reload_module "nvconfig" require("plenary.reload").reload_module "chadrc" require("plenary.reload").reload_module "base46" + require("plenary.reload").reload_module "nvchad" require("plenary.reload").reload_module(module) - local config = require "nvconfig" - - -- statusline - 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 .. "')()" - - -- tabufline - if config.ui.tabufline.enabled then - require("plenary.reload").reload_module "nvchad.tabufline.modules" - vim.opt.tabline = "%!v:lua.require('nvchad.tabufline.modules')()" - end - + require("nvchad") require("base46").load_all_highlights() -- vim.cmd("redraw!") end,