make tabufline reloadable

This commit is contained in:
siduck 2023-07-26 06:56:56 +05:30
parent f18488d41c
commit 682b023fb3
2 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,10 @@ autocmd("BufWritePost", {
require("plenary.reload").reload_module("nvchad_ui.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. config.ui.statusline.theme .. "').run()"
-- tabufline
require("plenary.reload").reload_module "nvchad_ui.tabufline.modules"
vim.opt.tabline = "%!v:lua.require('nvchad_ui.tabufline.modules').run()"
require("base46").load_all_highlights()
-- vim.cmd("redraw!")
end,

View File

@ -230,7 +230,6 @@ local default_plugins = {
config = function(_, opts)
dofile(vim.g.base46_cache .. "nvimtree")
require("nvim-tree").setup(opts)
vim.g.nvimtree_side = opts.view.side
end,
},