Skip to content

Commit 633e627

Browse files
committed
fix(lazy): Try attaching to buffers if lazy loaded
1 parent 5465846 commit 633e627

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lua/markview/autocmds.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,17 @@ autocmds.lazy_loaded = function ()
401401
require("markview.highlights").setup();
402402
require("markview.integrations").setup();
403403

404+
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
405+
autocmds.bufHandle({
406+
buf = buf,
407+
event = "BufEnter",
408+
match = "Lazy",
409+
file = vim.api.nvim_buf_get_name(buf),
410+
411+
id = -1,
412+
});
413+
end
414+
404415
--[[
405416
BUG: Do not attempt to attach to buffers.
406417

0 commit comments

Comments
 (0)