lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
3.98k stars 99 forks source link

Indent guidelines losing color #884

Open leehpham opened 2 months ago

leehpham commented 2 months ago

Problem

After recent update with Neovim (v0.10.0) and LazyVim, the indent guidelines lost color.

Screenshot 2024-05-19 at 11 09 05 AM

In the screenshot, the active indent guideline is somewhat brighter then the outer one. However, the color doesn't show up.

Steps to reproduce

  1. Open neovim with a project.
  2. Open a Typescript source file.
  3. Navigate the cursor to an indented line.

Expected behavior

The color of the indent guidelines should show up.

Neovim version (nvim -v)

0.10.0

lukas-reineke commented 2 months ago

Please use the minimal reproduction template

sheen-justin commented 1 month ago

@leehpham are you using WSL by any chance?

I am also noticing this behavior on my WSL installs, using both Windows Terminal and Alacritty as the terminal emulator. However, on bare metal Ubuntu, Fedora, and RHEL8 I see the expected behavior, on both Gnome Terminal and Alacritty. My dotfiles are identical between the bare metal installs and WSL, but it only seems to be breaking on WSL.

sheen-justin commented 1 month ago

@leehpham I was able to resolve this for myself by adding the following to my vimrc/init.vim

set termguicolors

See if that helps you as well.

entropy36 commented 2 weeks ago

I have the same problem on WSL2, but only in cpp files. When I editing lua file and C file, it works fine. Only in .cpp and .cc and .h file have this problem.Is there a possibility that I installed clangd-format to cause this problem?