qnvim icon indicating copy to clipboard operation
qnvim copied to clipboard

Every movement seems to reload the code model (warnings, cppcheck, etc.)

Open tom-anders opened this issue 4 years ago • 2 comments

I found that everytime I do anything (even just moving around in normal mode), the code model seems to be reloaded, i.e. cppcheck is run, the warnings turn grey for a short time, etc. Normally, this should only happen when you actually edit anything. Do you have a hint on how this could be fixed? Or is it an inherent problem of the neovim communication?

tom-anders avatar Jan 24 '21 15:01 tom-anders

This especially kills performance in large files

tom-anders avatar Jan 24 '21 15:01 tom-anders

I think it is possible to avoid many unnecessary code model reloads, I think it probably happened after an update in Qt/QtCreator/Neovim (I guess I resolved such issues in the past) To do so my plan would be to do not update the QtCreator text when the previous text is the same as the new text. I wish I could fix it myself but unfortunately currently I'm not using Qt and do not have any time to work on it.

sassanh avatar Jan 26 '21 07:01 sassanh

This issue seems to be fixed when I checked it on my machine, let me know if I'm wrong.

sassanh avatar Apr 20 '23 02:04 sassanh