Note that a proper fix is doing partial update just like it is done in the python package, using vim.api.nvim_buf_attach with on_lines. See src/jupynium/buffer.py for its logic.
Due to the complexity, this is a temporary fix that will cache the result and avoid re-calculation of line types.
Note that a proper fix is doing partial update just like it is done in the python package, using
vim.api.nvim_buf_attach
withon_lines
. Seesrc/jupynium/buffer.py
for its logic.Due to the complexity, this is a temporary fix that will cache the result and avoid re-calculation of line types.
Fixes #89