dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
988 stars 50 forks source link

perf: cursor move events only redraw when changed #43

Open tbung opened 2 years ago

tbung commented 2 years ago

This PR adds a new function to handle CursorMoved and WinScrolled. On CursorMoved it only rehighlights when the cursor left the cell, WinScrolled only redraws the output if the end of the cell is in the visible range of the window.

This closes #40 .