lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.07k stars 102 forks source link

Unable to see underlines #842

Closed steakhutzeee closed 6 months ago

steakhutzeee commented 6 months ago

Problem

Hi, i'm running Neovim in WSL2 with Windows Terminal but i do not see the underlines.

Steps to reproduce

Config is:

return {
  -- https://github.com/lukas-reineke/indent-blankline.nvim

  'lukas-reineke/indent-blankline.nvim', main = 'ibl', opts = {},

  config = function()
    local highlight = {
      "RainbowRed",
      "RainbowYellow",
      "RainbowBlue",
      "RainbowOrange",
      "RainbowGreen",
      "RainbowViolet",
      "RainbowCyan",
    }

    local hooks = require "ibl.hooks"
    -- create the highlight groups in the highlight setup hook, so they are reset
    -- every time the colorscheme changes
    hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
      vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
      vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
      vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
      vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
      vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
      vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
      vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
    end)

    require("ibl").setup { indent = { highlight = highlight } }

  end,
}

Expected behavior

To see underline for the first row of the context as seen here https://github.com/lukas-reineke/indent-blankline.nvim?tab=readme-ov-file#multiple-indent-colors at line 233.

Neovim version (nvim -v)

0.9.5

lukas-reineke commented 6 months ago

If you don't see underlines, your terminal probably doesn't support them. Try with a different terminal.