Skip to content

Commit 1dd1d30

Browse files
committed
fix: Fixed a big causing highlight groups to not apply on empty config table
1 parent e29b7b5 commit 1dd1d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ftplugin/markdown.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ if vim.islist(markview.configuration.buf_ignore) and vim.list_contains(markview.
2626
end
2727

2828
-- Don't add hls unless absolutely necessary
29-
if not markview.added_hls and vim.islist(markview.configuration.highlight_groups) then
29+
if not markview.set_hl_complete and vim.islist(markview.configuration.highlight_groups) then
3030
markview.add_hls(markview.configuration.highlight_groups)
31-
markview.added_hls = true;
31+
markview.set_hl_complete = true;
3232
end
3333

3434
local markview_augroup = vim.api.nvim_create_augroup("markview_buf_" .. vim.api.nvim_get_current_buf(), { clear = true });

0 commit comments

Comments
 (0)