Closed Integralist closed 1 month ago
Looks like this works around the issue for now: https://github.com/folke/noice.nvim/issues/40#issuecomment-1272521226
Seems like there is not a plugin specific highlight group for this component, so this issue can't be fixed in color scheme level (DiagnosticInfo
is not a plugin specific hi group, it's a general hi group and will effect many components and plugins).
This is very similar to https://github.com/sainnhe/everforest/pull/88
I agree, it would be a better (and very common) design from the plugin to set its own highlight groups and link them to core groups by default, instead of using the core groups directly. (cc. @folke)
As explained in https://github.com/nvim-lualine/lualine.nvim/pull/836, most IDEs use underline/undercurl to highlight diagnostic hints and issues, so it can be expected from (Neo)vim themes to adopt that styling too. Diagnostic
groups are a poor choice to highlight borders.
Update: looks like Noice now defaults to its own highlight groups 🎉 (https://github.com/folke/noice.nvim/issues/46)
The description of all built-in highlight groups is here: https://github.com/folke/noice.nvim/blob/d45fd10/README.md#-highlight-groups
@Integralist have you tried with the latest version? It would be nice to get feedback from an actual user to know whether or not we need to add explicit highlights for this plugin 🙂
@antoineco hi, yes I'm setting the highlight groups myself here: https://github.com/Integralist/dotfiles/blob/main/.config/nvim/lua/plugins/colorschemes.lua#L12-L32
I have done the following steps before reporting this issue:
Operating system/version
macOS Monterey 12.6
Terminal emulator/version
Alacritty
$TERM environment variable
xterm-256color
Tmux version
I'm using Zellij
Feature matrix
Minimal vimrc that can reproduce this bug.
Steps to reproduce this bug using minimal vimrc
nvim -u /tmp/minimal.lua
.:colorscheme gruvbox-material
(optional::set background=dark
, it breaks in light and dark).Expected behavior
The UI for 'Noice' should render like:
Actual behavior
But switching to this colorscheme breaks it like so: