autocmd: rm un-needed reload code, just require("nvchad")

This commit is contained in:
siduck 2024-06-06 08:14:10 +05:30
parent f21c7f697e
commit 164e8cc7fc

View File

@ -23,21 +23,10 @@ autocmd("BufWritePost", {
require("plenary.reload").reload_module "nvconfig" require("plenary.reload").reload_module "nvconfig"
require("plenary.reload").reload_module "chadrc" require("plenary.reload").reload_module "chadrc"
require("plenary.reload").reload_module "base46" require("plenary.reload").reload_module "base46"
require("plenary.reload").reload_module "nvchad"
require("plenary.reload").reload_module(module) require("plenary.reload").reload_module(module)
local config = require "nvconfig" require("nvchad")
-- 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("base46").load_all_highlights() require("base46").load_all_highlights()
-- vim.cmd("redraw!") -- vim.cmd("redraw!")
end, end,