I use neovim 0.4.3. When I open a large xml file (about 130-140k lines) syntax highlighting switches off with a message:
'redrawtime' exceeded, syntax highlighting disabled
If add this line to my config init.vim:
set redrawtime=10000
The syntax highlighting works but when I try to scroll up page by page it becomes really slow.
What can be a possible solution or I just need to accept the fact that there is no syntax highlighting for large files in neovim/vim?
g:xml_syntax_folding
set? From the comments in the code, "This might slow down syntax highlighting significantly, especially for large files."