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

label-mode: use virtual text in nvim ≥ 0.5 #303

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

tomtomjhj
Copy link
Contributor

  • label-mode: remove workaround for old vim bug
    • This is not necessary. But 7.4.792 dates back to 2015, so I think it's fine to remove.
  • label-mode: replace conceal with virtual text in nvim ≥ 0.5

Problem: Using conceal for label interferes with usual syntax highlights
that use conceal.

Solution: In nvim, set decoration provider that renders labels as
virtual text only in the current window.
@justinmk
Copy link
Owner

This is great, thank you! Looks great, also not much new code, and no regressions in the tests. So merging now.

But I noticed one issue: changing the SneakLabel highlight isn't fully respected. Example:

hi SneakLabel ctermbg=red

@justinmk justinmk merged commit ec6e92c into justinmk:master Jul 12, 2023
@justinmk justinmk changed the title label-mode: replace conceal with virtual text in nvim ≥ 0.5 label-mode: use virtual text in nvim ≥ 0.5 Jul 12, 2023
@tomtomjhj tomtomjhj deleted the virt-text branch July 12, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants