Open IngoMeyer441 opened 6 years ago
color_coded calls its update routine on CursorHold
, CursorHoldI
, CursorMoved
and CursorMovedI
(https://github.com/jeaye/color_coded/blob/master/plugin/color_coded.vim#L52). However, binding to insert mode events could be quite slow...
Sure. That is a good idea. I have pushed it to master. I would imagine no big hit on performance. Please try it.
Tried it and works great without any noticeable performance hit. :+1:
Hey, chromatica does not update highlighting when only the viewport is changed (e.g. by pressing
zz
or<C-y>
) and the cursor stays in place. Would it maybe be better to callchromatica#handlers#_highlight()
onCursorHold
and not onCursorMoved
? (see handlers.vim)