Skip to content

Commit

Permalink
fix: Markview now updats when entering the attached buffer
Browse files Browse the repository at this point in the history
Ref: #126
  • Loading branch information
OXY2DEV committed Aug 25, 2024
1 parent fbf3040 commit 87badab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
local cached_mode = nil;
local mode_timer = vim.uv.new_timer();

local update_events = { "ModeChanged", "TextChanged" };
local update_events = { "BufEnter", "ModeChanged", "TextChanged" };

if vim.list_contains(markview.configuration.modes, "n") or vim.list_contains(markview.configuration.modes, "v") then
table.insert(update_events, "CursorMoved");
Expand Down

0 comments on commit 87badab

Please sign in to comment.