This line creates a big laggines because it causes vim to get errors on each motion in normal mode. I'm wondering why have you did it, OnFileReadyToParse reparses diagnostics only in CursorHold events, why check for errors on CursorMoved?