This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
neovim-flake/neovim-ide/plugin/indent-blankline.lua

38 lines
1.2 KiB
Lua

local colors = require("catppuccin.palettes.mocha")
local highlight = {
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
}
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 = colors.red })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = colors.yellow })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = colors.blue })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = colors.peach })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = colors.green })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = colors.mauve })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = colors.teal })
end)
vim.g.rainbow_delimiters = { highlight = highlight }
require("ibl").setup {
scope = {
highlight = highlight,
},
indent = {
highlight = highlight,
char = "",
tab_char = "",
},
}
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)