summaryrefslogtreecommitdiff
path: root/.config/nvim/plugins/indent_blankline.vim
blob: 2702b4f142b5f66938f90dc39efdc2fc97c08945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
lua <<EOF

local hooks = require('ibl.hooks')

hooks.register(
  hooks.type.WHITESPACE,
  hooks.builtin.hide_first_space_indent_level
)

hooks.register(
  hooks.type.WHITESPACE,
  hooks.builtin.hide_first_tab_indent_level
)

hooks.register(
  hooks.type.HIGHLIGHT_SETUP,
  function()
    vim.api.nvim_set_hl(0, 'IndentBlanklineChar', { fg = '#303030', nocombine = true })
    vim.api.nvim_set_hl(0, 'IndentBlanklineContextChar', { fg = '#404040', nocombine = true })
  end
)


require('ibl').setup {
  indent = {
    highlight = {
      'IndentBlanklineChar',
    },
  },

  whitespace = {
    remove_blankline_trail = true,
  },

  scope = {
    enabled = false,

    highlight = {
      'IndentBlanklineContextChar',
    },
  },
}
EOF