Skip to content

Commit cffa731

Browse files
committed
fix(table): remove unused autocmd VimResized
1 parent 3f57a77 commit cffa731

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

lua/render-markdown/core/manager.lua

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ function M.init()
3838
end
3939
end,
4040
})
41-
-- terminal / GUI resize — re-render all visible attached windows
42-
vim.api.nvim_create_autocmd('VimResized', {
43-
group = M.group,
44-
callback = function(args)
45-
for _, win in ipairs(vim.api.nvim_list_wins()) do
46-
local buf = env.win.buf(win)
47-
if M.attached(buf) and state.get(buf).enabled then
48-
ui.update(buf, win, args.event, true)
49-
end
50-
end
51-
end,
52-
})
5341
-- wrap option toggled (:set wrap / :set nowrap) — re-render the current window
5442
vim.api.nvim_create_autocmd('OptionSet', {
5543
group = M.group,

0 commit comments

Comments
 (0)