onedark.nvim
onedark.nvim copied to clipboard
Parenthesis not visible in comments when matching brackets are highlighted
With onedark:
Without onedark:
This is happening because the color of the comments is the same as the matching parenthesis highlight color. This makes using brackets a little difficult in the comments.
Possible solution: Set the 'MatchParen' highlight group's guibg to a lighter shade.
You could change the colors to fix it. This is my config:
require('onedark').setup {
style = 'dark',
colors = {
grey = '#868686', -- Comments
light_grey = '#a3abbf',
bg3 = '#1e1e2e' -- Selection
}
}
require('onedark').load()
Fixed! 🎉
Changed MatchParen background from grey to bg3 for better visibility in comments.
Before: MatchParen used grey background (same as comment color), making parentheses invisible in comments.
After: MatchParen now uses bg3 (a lighter shade), making bracket matching clearly visible even in commented code.
This maintains good contrast while being distinct from the comment color.