Closed nyngwang closed 1 year ago
Nice! Will look at this asap (probably Saturday unfortunately)
Great, I just found that vim.schedule
saves it. Before 5208611 everything seems frozen.
https://github.com/HampusHauffman/block.nvim/tree/scroll @nyngwang Could you try this out see if it works well for you. I took a lot of inspiration from your code but made it a bit more in line with the current code style. If you could try it i'll merge it to master
Yes, that can work, thank you! (sorry for my "make-it-work-first" writing style :P Still need to learn more about Lua)
Close #4.
I hope this one can be merged first since my further PRs might depend on this one. Thank you!
Notes
group
withclear = true
when creatingautocmd
can avoid many performance issues caused by redundant identical autocmds.WinScrolled
but its performance was really bad, so my final decision isCursorHold
to have good performance but regression of UX as the trade-off.update
so that it can be called by an autocmd.pcall
is needed. I encountered an error when writing the PR.l
is needed. I encountered an error when writing the PR.