Skip to content

Commit

Permalink
fix: Fixed a big causing highlight groups to not apply on empty confi…
Browse files Browse the repository at this point in the history
…g table
  • Loading branch information
OXY2DEV committed Aug 8, 2024
1 parent e29b7b5 commit 1dd1d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftplugin/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ if vim.islist(markview.configuration.buf_ignore) and vim.list_contains(markview.
end

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

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

0 comments on commit 1dd1d30

Please sign in to comment.