From 1dd1d3069d7f25ebefbeaf692af9f792e3414eab Mon Sep 17 00:00:00 2001 From: Shawon Date: Thu, 8 Aug 2024 20:21:46 +0600 Subject: [PATCH] fix: Fixed a big causing highlight groups to not apply on empty config table --- ftplugin/markdown.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua index 05a2846..ef5a74e 100644 --- a/ftplugin/markdown.lua +++ b/ftplugin/markdown.lua @@ -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 });