load cached highlights whenever base46 updates

This commit is contained in:
siduck 2023-02-28 09:23:07 +05:30
parent 27455fd2c2
commit 3384f81639
2 changed files with 9 additions and 5 deletions

View file

@ -16,10 +16,7 @@ M.lazy = function(install_path)
-- install plugins + compile their configs -- install plugins + compile their configs
require "plugins" require "plugins"
require("lazy").load { plugins = { "nvim-treesitter" } }
vim.fn.mkdir(vim.g.base46_cache, "p")
require("base46").load_all_highlights()
require("lazy").load { plugins = "nvim-treesitter" }
-- install binaries from mason.nvim & tsparsers on LazySync -- install binaries from mason.nvim & tsparsers on LazySync
vim.schedule(function() vim.schedule(function()

View file

@ -6,7 +6,14 @@ local default_plugins = {
-- nvchad plugins -- nvchad plugins
{ "NvChad/extensions", branch = "v2.0" }, { "NvChad/extensions", branch = "v2.0" },
{ "NvChad/base46", branch = "v2.0" },
{
"NvChad/base46",
branch = "v2.0",
build = function()
require("base46").load_all_highlights()
end,
},
{ {
"NvChad/ui", "NvChad/ui",