kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

Visual mode highlight only applies to ctermbg #214

Open net opened 2 months ago

net commented 2 months ago

Neovim version (nvim -v | head -n1)

NVIM v0.9.5

Operating system/version

macOS 14.3

How to reproduce the issue

I'm using

vim.o.termguicolors = false

and my Visual highlight has a dark ctermbg and a light ctermfg.

Expected behavior

Here I have the 3rd line (export const ...) folded:

Screenshot 2024-04-15 at 16 00 12

When I select the folded line in visual mode I expect it to take on all the attributes of the Visual highlight group.

Actual behavior

Here, I've selected both lines in visual mode:

Screenshot 2024-04-15 at 16 00 19

As seen with the non-folded line (import db from ...), my Visual highlight group has a dark ctermbg and a light ctermfg. The folded line only takes on the Visual highlight's dark ctermbg, but not the light ctermfg.