numirias / semshi

🌈 Semantic Highlighting for Python in Neovim
1.02k stars 33 forks source link

Way to disable syntax error highlighting in insert mode? #117

Open xiaochuanyu opened 2 years ago

xiaochuanyu commented 2 years ago

Currently, syntax errors are highlighted after some delay when you are stop typing in insert mode as seen here: image Is there a way to disable highlighting syntax errors while insert mode? E.g. I expect the following to be shown as long as I'm in insert mode: image

smprather commented 2 years ago

Yes. I am here looking for the same. Even though I have error marker delay set to the default of 1.5s, it is not honored while typing in insert mode. So the error column is quickly bouncing between on/off while I type making everything jerk left and right as I type. I also wouldn't mind an option to always have the error-marker-column visible. Whatever it takes to stop the bouncing while I'm typing. Thanks!

smprather commented 2 years ago

I was was going to try to use autocmd to turn the error marker on/off when entering/leaving insert mode, but the variable does not appear to be "live" after loading init.vim. So a possible solution to this issue is to make g:semshi#error_sign responsive to changes after init.vim is loaded.