aboutsummaryrefslogtreecommitdiff
path: root/env/.config/nvim/after/plugin/indent-blankline.lua
blob: 97534a4a493781d69a68ad7f696952f43be07c5e (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
local ok, _ = pcall(require, 'ibl')
if ok then
    local highlight = {
        "RainbowRed",
    }

    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 = "#702ec0" })
    end)

    require('ibl').setup {
        indent = {
            char = '|',
            highlight = highlight,
        },
        scope = {
            show_start = false,
            show_end = false,
            show_exact_scope = false,
        },
        exclude = {
            filetypes = {
                'help',
                'packer',
                'undotree',
                'diff',
            },
        },
    }
end