neovim-dot-app
neovim-dot-app copied to clipboard
Scrolling very laggy with many lint errors showing
Not sure if this is a neomake, Neovim, or Neovim.app issue, but I wanted to bring it up here to discuss.
After neomake runs eslint, and adds error signs in the gutter there is a significant scrolling lag when I move over those lines (even going horizontally).
My hunch is that the command showing the error below is being fired too often. Maybe this results in too many messages being sent over to Neovim.app and the UI can't paint fast enough? Something needs to be debounced somewhere. Any pointers for how to track this down? I'll gladly get my hands (a little) dirty.
Can you try it with nvim in the terminal? This will determine whether it's a Neovim.app issue or not.
In the terminal I can't perceive any delay. If there is one, it's very small.
It does sound like inefficient drawing then. Maybe this plugin is causing Vim to send redraw events in an unusual order, or send too many of them?
It might be a while before I get round to it but if you want to take a look yourself the main drawing code is in redraw.mm — this interprets the redraw events from Vim and updates the screen. Putting some timing logs in there might help you track the issue down; that's where I'd start.
You can dump out the whole redraw_o
to get a sense of what's happening each redraw.
I'm having the same issue using neomake and pylint. When scrolling horizontally I notice that the commander (probably not the correct word, but the bar where you input your commands like :w) keeps getting refreshed every time the cursor changes position. That might be the problem?
have y'all tried set nolazyredraw
?