Closed gagbo closed 6 years ago
Thanks for your feedback, I will fix this soon. But I think you can solve your problem by configuration (which will be more effective) instead of autocmd, like following (replace coq
to the filetype you want to disable):
let g:rainbow_conf = {
\ 'separately': {
\ 'coq': 0,
\ }
\}
Describe the bug
Calling rainbow#clear() if there is no active rainbow seems to trigger error
To Reproduce
:RainbowToggleOff
:RainbowToggleOff
againExpected behavior
Nothing happens, since there is no rainbow higlight
Screenshots
Sorry for the french error message, I'm trying to translate on the fly :
Additional context
Calling
RainbowToggleOff
twice might seem dumb, but there's a filetype for which I don't want to have highlights, so I added an autocommand to call RainbowToggleOff (in after/ftplugin/xxx.vim I think), and I trigger this error whenever I come back to a buffer with the given filetype for the second time in a session.