AlphaTechnolog/pywal.nvim

Whitespaces (listchars) have the same color of backgroung

MarcoRiggirello opened this issue · 5 comments

Using pywal.nvim colorscheme when vim.opt.list=true is set all listchars of Whitespace highlightning group are invisible. Here's an example:
immagine
immagine

Seems like a problem in pywal colorscheme config, where for Whitespace guifg=colors.background. If I set another color, for example color1 (since other lischars, like eol, use NonText highlightning - see :help listchars) the problem is solved:
immagine

I use wezterm as terminal emulator and nvim v0.6.1 on Arch Linux.

Oh sure, It seems like a problem with the highlights in the plugin, I Will check this later, sorry...

The solution for now is add manually the highlight for NonText. Later I will push a fix for this

Thank you a lot for use pywal.nvim :)

Thank you for your work! Just a question: how can I add manually the highlight?

Oh sure you can add it with this lua code:

local hi = vim.highlight.create
local colors = require('pywal.core').get_colors()

hi('Whitespace', { guifg = colors.color1 }, false)

The correct highlight isn't NonText it's Whitespace, sorry lol

Thank you!

Pushed changes to main branch, remove the custom highlight and update the plugin ;D

Thanks a lot for use pywal.nvim, enjoy using it!