gorbit99 / codewindow.nvim

MIT License
439 stars 17 forks source link

feat: custom trigger events that update the code window #52

Closed pocco81 closed 1 year ago

pocco81 commented 1 year ago

Fixes #51.

pocco81 commented 1 year ago

1c1c46c fixed a small issue that occurred when adding config.events that did not occur before WinScrolled. E.g: I have config.events = { "BufWritePost" }, however if I paste something at the bottom of a file and then try G or :# to go to any of the lines of the thing(s) I pasted without having saved, Codewindow threw an error because those lines did not exist in minimap, and so it failed to update the highlights. This commit implements a simple pcall.

gorbit99 commented 1 year ago

Thank you for putting this in, really appreciate it