Neovim Config
1return {
2 "lukas-reineke/indent-blankline.nvim",
3 main = "ibl",
4 config = function()
5 require("ibl").setup()
6 local highlight = {
7 "RainbowRed",
8 "RainbowYellow",
9 "RainbowBlue",
10 "RainbowOrange",
11 "RainbowGreen",
12 "RainbowViolet",
13 "RainbowCyan",
14 }
15 local hooks = require "ibl.hooks"
16 -- create the highlight groups in the highlight setup hook, so they are reset
17 -- every time the colorscheme changes
18 hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
19 vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
20 vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
21 vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
22 vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
23 vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
24 vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
25 vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
26 end)
27
28 vim.g.rainbow_delimiters = { highlight = highlight }
29 require("ibl").setup { scope = { highlight = highlight } }
30
31 hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
32 end
33}