nvim/lua/plugins/ui/indent-blankline.lua

31 lines
1018 B
Lua
Raw Normal View History

2025-02-14 13:46:24 -08:00
local highlight = {
2025-02-14 17:34:12 -08:00
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
2025-02-14 13:46:24 -08:00
}
2025-02-14 17:34:12 -08:00
local hooks = require("ibl.hooks")
2025-02-14 13:46:24 -08:00
-- 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()
2025-02-14 17:34:12 -08:00
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#ED8796" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#EED49F" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#8AADF4" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#F5A97F" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#A6DA95" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C6A0F6" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#8BD5CA" })
2025-02-14 13:46:24 -08:00
end)
vim.g.rainbow_delimiters = { highlight = highlight }
2025-02-14 17:34:12 -08:00
require("ibl").setup({
scope = { highlight = highlight },
exclude = { filetypes = { "dashboard" } },
})
2025-02-14 13:46:24 -08:00
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)