Skip to content

Commit 389e91f

Browse files
fix(highlights): Reset hl groups after colorscheme change
Fixes #720
1 parent ba2ab78 commit 389e91f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/orgmode/init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ function Org:setup_autocmds()
9494
self:reload(vim.fn.expand('<afile>:p'))
9595
end,
9696
})
97+
vim.api.nvim_create_autocmd('ColorScheme', {
98+
pattern = '*',
99+
group = org_augroup,
100+
callback = function()
101+
if self.initialized then
102+
require('orgmode.colors.highlights').define_highlights()
103+
end
104+
end,
105+
})
97106
end
98107

99108
function Org.setup_ts_grammar()

0 commit comments

Comments
 (0)