lukas-reineke / indent-blankline.nvim

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

Guides Not Showing Correctly #836

Closed ztroop closed 7 months ago

ztroop commented 7 months ago

Problem

I'm not seeing indent lines (or whitespace dots) with the default configuration. It does show the indent highlight on the current scope. If I highlight it with my cursor, I can see the other indents - no dots still.

Screenshot 2024-02-02 at 10 44 25 PM

If I run :highlight IndentBlanklineChar, I do see what I expect:

Screenshot 2024-02-02 at 10 57 24 PM

Steps to reproduce

return {
  "lukas-reineke/indent-blankline.nvim",
  config = function()
    require("ibl").setup({
      whitespace = {
        remove_blankline_trail = true,
      },
    })
  end,
}

Other NVIM Configuration: https://github.com/ztroop/dotfiles/tree/master/nvim

Expected behavior

To see guides and dots.

Neovim version (nvim -v)

0.9.5

lukas-reineke commented 7 months ago

Make sure IndentBlanklineChar is set before you initialize indent-blankline.

ztroop commented 7 months ago

@lukas-reineke Do you mean setting the following?

vim.g.indent_blankline_char= '┊'
vim.g.indent_blankline_use_treesitter = true
vim.g.indent_blankline_show_current_context = true

If so, it does seem to change the result.

=update=

I believe what I tried is out of date. How would you set IndentBlanklineChar?

lukas-reineke commented 7 months ago

Sorry I didn't notice you used old highlight group. It should be :help hl-IblIndent

ztroop commented 7 months ago

I didn't find the :help documentation too helpful with regards to configuration. I'm using a modified configuration based on "multiple indent colours" from the README.md. I can see the other indents now.

Despite my efforts to experiment with the whitespace configuration options, I'm still unable to view the "dotted" whitespace characters. I can live without it, so I've decided to close this issue.

lukas-reineke commented 7 months ago

I'm still unable to view the "dotted" whitespace characters.

That is not a feature of indent-blankline. It's a native Neovim option, :help 'list' and :help 'listchars'