Skip to content

Commit

Permalink
fix(nvim): indent blankline config
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Sep 16, 2024
1 parent 6b7b5fb commit e686070
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
22 changes: 22 additions & 0 deletions nvim/lua/plugins/configs/indent-blankline.lua
Original file line number Diff line number Diff line change
@@ -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,
},
})
11 changes: 10 additions & 1 deletion nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e686070

Please sign in to comment.