diff options
author | Magnus Groß <21310755+vimpostor@users.noreply.github.com> | 2021-12-09 15:21:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 23:21:39 +0900 |
commit | 9860dadbc952b227b2d25269e717ae801c5d6f2c (patch) | |
tree | 276866e1ac7f55ff734d49b8e374b4abb060ceff /autoload/ale/lsp_linter.vim | |
parent | de67f4743d9ffd1694d15b1b91fedfaa0a5cda70 (diff) | |
download | ale-9860dadbc952b227b2d25269e717ae801c5d6f2c.zip |
Initialize hl-groups correctly if virtual text is loaded first (#3960)
If virtualtext.vim is autoloaded first, it will link
ALEVirtualTextWarning to ALEWarning. But ALEWarning is not initialized
yet, so it will create ALEWarning, but with no color definition set.
Shortly after, highlight.vim is autoloaded, which would usually link
ALEWarning to SpellCap, but only if ALEWarning is not already set.
However since ALEWarning is already initialized due to the previous
link, we skip this and never actually come around to properly
initializing it.
We fix this by initializing all highlight groups in highlight.vim, thus
satisfying the dependency of ALEVirtualTextWarning being initialized
after ALEWarning.
Fixes #3585
Diffstat (limited to 'autoload/ale/lsp_linter.vim')
0 files changed, 0 insertions, 0 deletions