Virtualtext not showing as comments after colorscheme reload #4621
-
Hi folks, IssueWhen the colorscheme gets reloaded, virtualtext loses its "comment" highlighting. I was able to get around this partially by adding the following to the function that manually toggles function! s:TogBG()
let &background = ( &background == "dark"? "light" : "dark" )
highlight link ALEVirtualTextError Comment
highlight link ALEVirtualTextStyleError ALEVirtualTextError
highlight link ALEVirtualTextWarning Comment
highlight link ALEVirtualTextStyleWarning ALEVirtualTextWarning
highlight link ALEVirtualTextInfo ALEVirtualTextWarning
hi ALEError cterm=undercurl
hi ALEWarning cterm=undercurl
endfunction
However, this doesn't solve the problem when the colorscheme is reloaded automatically, for example, when my terminal background gets changed and vim follows that change. I'm also suspicious that if these highlight groups get somehow reset, then other non-visible items may also silently reset. QuestionWhat is causing these highlight groups to be cleared when the colorscheme is reloaded? Environment$ uname -r $ vim --version On |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Create an issue for this. |
Beta Was this translation helpful? Give feedback.
Create an issue for this.