lukas-reineke / indent-blankline.nvim

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

Unable to disable higlights #864

Closed KnownBlackHat closed 2 months ago

KnownBlackHat commented 2 months ago

Problem

I don't like highlight at all and so i wanted to disable it but even after setting it to null i m getting highlights

i don't want this underline highlight image

Steps to reproduce

require('ibl').setup {
    indent = {char = '│', highlight = None},
    whitespace = {remove_blankline_trail = false}
}

Expected behavior

i don't want underline highlight

Neovim version (nvim -v)

NVIM v0.10.0-dev-741+g996dd36c7 Build type: Debug LuaJIT 2.1.0-beta3

morhaham commented 2 months ago

Sadly this is currently not supported: https://github.com/lukas-reineke/indent-blankline.nvim/issues/846

lukas-reineke commented 2 months ago

Sadly this is currently not supported: https://github.com/lukas-reineke/indent-blankline.nvim/issues/846

That is not true.

You are both misunderstanding what highlight is. Please read :help :highlight. Setting highlight groups changes the color of the indentation guides and the scope guide and underlines.

If you want to disable the underline, you can set :help ibl.config.scope.show_start and :help ibl.config.scope.show_end to false. If you don't want to use scope at all, you can disable it with :help ibl.config.scope.enabled

morhaham commented 2 months ago

Sadly this is currently not supported: #846

That is not true.

You are both misunderstanding what highlight is. Please read :help :highlight. Setting highlight groups changes the color of the indentation guides and the scope guide and underlines.

If you want to disable the underline, you can set :help ibl.config.scope.show_start and :help ibl.config.scope.show_end to false. If you don't want to use scope at all, you can disable it with :help ibl.config.scope.enabled

Sorry my bad, thank you! for the show_end, I am not able to see the underline when setting this to true:

  {
    "lukas-reineke/indent-blankline.nvim",
    main = "ibl",
    opts = {},
    config = function()
      local ibl = require("ibl")
      ibl.setup({
        scope = {
          show_start = false,
          show_end = true,
        },
      })
    end,
  },
image
lukas-reineke commented 2 months ago

The underline for the end of the scope is only displayed when the code in the last line of the scope is indented more than the scope. In your screenshot, the closing } of the scope in line 8 is at the same indentation as the scope.

KnownBlackHat commented 2 months ago

image Thanks! didn't knew about this