Skip to content

Commit

Permalink
trigger NvThemeReload user autocmd whenever theme reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
siduck committed Nov 7, 2024
1 parent f006ffd commit c58d8a7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/base46/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,16 @@ M.load_all_highlights = function()
require("plenary.reload").reload_module "base46"
M.compile()

if not opts.compile_all then
for _, name in ipairs(integrations) do
dofile(vim.g.base46_cache .. name)
end
else
dofile(vim.g.base46_cache .. "all")
for _, name in ipairs(integrations) do
dofile(vim.g.base46_cache .. name)
end

-- update blankline
pcall(function()
require("ibl").update()
end)

vim.api.nvim_exec_autocmds("User", { pattern = "NvThemeReload" })
end

M.override_theme = function(default_theme, theme_name)
Expand Down

0 comments on commit c58d8a7

Please sign in to comment.