Skip to content

ALEWarning and ALEInfo highlights are not cleared properly #87

Open
@pbnj

Description

Environment:

  • OS: macOS 10.15.7 (19H512)
  • Vim (:version): VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 28 2020 12:55:00)
  • Terminal: iterm2

If you have a trouble with coloration and are using Vim/Neovim with terminal:

  • Does your Vim support full colors? (:set termguicolors)
  • Does your terminal support full colors? (e.g. Terminal.app doesn't support it)

Problem

ALEWarning & ALEInfo don't seem to be cleared properly initially.

:verbose hi ALEWarning
ALEWarning     xxx links to SpellCap
        Last set from ~/.dotfiles/vim/.vim/plugged/ale/autoload/ale/highlight.vim line 14
:verbose hi ALEInfo
ALEInfo        xxx links to ALEWarning
        Last set from ~/.dotfiles/vim/.vim/plugged/ale/autoload/ale/highlight.vim line 22

Once a file is opened and all plugins have loaded, if I source $MYVIMRC again, highlights are fixed:

:verbose hi ALEWarning
ALEWarning     xxx cleared
Press ENTER or type command to continue
:verbose hi ALEInfo
ALEInfo        xxx cleared
Press ENTER or type command to continue

Steps

  • Minimal vimrc to reproduce:
set nocp

call plug#begin('~/.vim/plugged')
Plug 'https://github.com/dense-analysis/ale'
Plug 'https://github.com/cocopon/iceberg.vim'
call plug#end()

filetype plugin indent on
set termguicolors
colo iceberg
  • open file with ALE warnings/info (highlights should be visible)
  • source .vimrc (highlights should disappear)

Screenshots

At first open:

Screen Shot 2021-02-12 at 2 21 43 PM

After source .vimrc:

Screen Shot 2021-02-12 at 2 22 27 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions