another day

This commit is contained in:
Iwaniuk Krzysztof 2024-06-19 00:41:29 +02:00
parent feb59d91c5
commit 1bbc50e3a9
27 changed files with 419 additions and 246 deletions

View file

@ -26,17 +26,55 @@ return {
which_key = true,
},
},
config = function(_, opts)
require('catppuccin').setup(opts)
local theme = require 'catppuccin.palettes.mocha'
local highlight = {
RainbowRed = theme.red,
RainbowYellow = theme.yellow,
RainbowBlue = theme.blue,
RainbowOrange = theme.peach,
RainbowGreen = theme.green,
RainbowViolet = theme.maroon,
RainbowCyan = theme.teal,
}
vim.g.rainbow_delimiters = { highlight = highlight }
end,
},
{ 'tpope/vim-sleuth' },
{
'lukas-reineke/indent-blankline.nvim',
dependencies = { 'catppuccin/nvim' },
main = 'ibl',
opts = {
indent = vim.g.rainbow_delimiters,
exclude = {
filetypes = {
'dashboard',
},
},
},
config = function(_, opts)
local hooks = require 'ibl.hooks'
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
for name, value in pairs(vim.g.rainbow_delimiters) do
vim.api.nvim_set_hl(0, name, { fg = value })
end
end)
opts.scope = {
highlight = {
'RainbowDelimiterRed',
'RainbowDelimiterYellow',
'RainbowDelimiterBlue',
'RainbowDelimiterOrange',
'RainbowDelimiterGreen',
'RainbowDelimiterViolet',
'RainbowDelimiterCyan',
},
}
-- require('ibl').setup(opts)
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
end,
},
}