Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist highlighting on color scheme change #52

Closed
wants to merge 5 commits into from

Commits on Nov 15, 2020

  1. Persist highlighting on color scheme change

    Well-written Vim color schemes run the command :highlight clear to
    remove the highlight groups set by a previous color scheme.
    Unfortunately, this also removes the internal highlight group set by
    vim-exchange, effectively disabling vim-exchange's highlighting, and
    running :XchangeHighlightToggle does not reenable the plugin's
    highlighting.
    
    In this commit, this is fixed by adding an autocmd to link the
    _exchange_region highlight group back to ExchangeRegion when the color
    scheme is changed and the highlighting is enabled.
    jchros committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    310e841 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2020

  1. Allow for chaining of commands

    jchros committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    39b4dd0 View commit details
    Browse the repository at this point in the history
  2. fix: highlighting is lost when colorscheme is changed

    New vim restores default highlight links, but fails to do it when there is no default link in the first place.
    
    Without this fix, vim-exchange looses highlighting after `:colorscheme ...`
    
    Relates to vim/vim#6970
    habamax authored and jchros committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    bed6c8a View commit details
    Browse the repository at this point in the history
  3. explicit link groups

    Co-authored-by: Tom McDonald <tommcdo@gmail.com>
    2 people authored and jchros committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    67cd91e View commit details
    Browse the repository at this point in the history
  4. Revert "Merge pull request tommcdo#53 from habamax/master"

    This reverts commit 17f1a2c, reversing
    changes made to 13d3895.
    jchros committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    43472f3 View commit details
    Browse the repository at this point in the history