sainnhe / everforest

🌲 Comfortable & Pleasant Color Scheme for Vim
MIT License
2.91k stars 132 forks source link

fix(lsp): use distinct styles for (non-)underline diags #137

Closed antoineco closed 5 months ago

antoineco commented 5 months ago

Supersedes #136 Fixes https://github.com/sainnhe/gruvbox-material/issues/120 Fixes https://github.com/sainnhe/sonokai/issues/87 Fixes https://github.com/sainnhe/everforest/issues/121 (proper fix, not upstream workaround) Fixes https://github.com/sainnhe/gruvbox-material/issues/145 (proper fix, not upstream workaround)

Description

Ensures that LspDiagnostic and LspDiagnosticUnderline use distinct styles: highlighted for the former, underline (undercurl) for the latter.

Rationale:

I have used these settings for a bit and tried them with plugins that used to have issues with Everforest. So far I haven't noticed any problem.

Screenshots

Nothing new to see here, but I'm including examples of highlights without/with g:everforest_diagnostic_text_highlight to illustrate the PR:

Screenshot 2024-06-01 at 21 38 26 Screenshot 2024-06-01 at 21 37 47
antoineco commented 5 months ago

@zennolux would you by any chance be able to test this branch with LSP Saga?

zennolux commented 5 months ago

@antoineco

Great! It works!

Thank you for your work.