diff --git a/nvim/lua/plugins/configs/indent-blankline.lua b/nvim/lua/plugins/configs/indent-blankline.lua new file mode 100644 index 0000000..217bc8b --- /dev/null +++ b/nvim/lua/plugins/configs/indent-blankline.lua @@ -0,0 +1,22 @@ +local _plugin, plugin = pcall(require, 'ibl') +if not _plugin then + return +end + +local hooks = require('ibl.hooks') + +hooks.register(hooks.type.HIGHLIGHT_SETUP, function() + vim.api.nvim_set_hl(0, 'RainbowRed', { fg = '#E06C75' }) + vim.api.nvim_set_hl(0, 'RainbowYellow', { fg = '#E5C07B' }) + vim.api.nvim_set_hl(0, 'RainbowBlue', { fg = '#61AFEF' }) + vim.api.nvim_set_hl(0, 'RainbowOrange', { fg = '#D19A66' }) + vim.api.nvim_set_hl(0, 'RainbowGreen', { fg = '#98C379' }) + vim.api.nvim_set_hl(0, 'RainbowViolet', { fg = '#C678DD' }) + vim.api.nvim_set_hl(0, 'RainbowCyan', { fg = '#56B6C2' }) +end) + +plugin.setup({ + indent = { + highlight = highlight, + }, +}) diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index 33aa5bc..978166e 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -95,7 +95,16 @@ require('lazy').setup({ require('plugins.configs.nvim-tree') end, }, - 'lukas-reineke/indent-blankline.nvim', + { + 'lukas-reineke/indent-blankline.nvim', + main = 'ibl', + ---@module 'ibl' + ---@type ibl.config + opts = {}, + config = function() + require('plugins.configs.indent-blankline') + end, + }, { 'rcarriga/nvim-notify', config = function()