79 lines
1.9 KiB
Lua
79 lines
1.9 KiB
Lua
return {
|
|
{
|
|
'catppuccin/nvim',
|
|
lazy = false,
|
|
name = 'catppuccin',
|
|
priority = 1000,
|
|
init = function()
|
|
vim.cmd.colorscheme 'catppuccin-mocha'
|
|
vim.cmd.hi 'Comment gui=none'
|
|
end,
|
|
opts = {
|
|
integrations = {
|
|
cmp = true,
|
|
gitsigns = true,
|
|
treesitter = true,
|
|
notify = true,
|
|
noice = true,
|
|
neogit = true,
|
|
lsp_saga = true,
|
|
native_lsp = {
|
|
enabled = true,
|
|
hints = { 'italic' },
|
|
},
|
|
rainbow_delimiters = true,
|
|
mini = {
|
|
enabled = true,
|
|
},
|
|
dashboard = true,
|
|
fidget = true,
|
|
mason = true,
|
|
telescope = {
|
|
enabled = true,
|
|
},
|
|
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)
|
|
require('ibl').setup(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)
|
|
|
|
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
|
|
end,
|
|
},
|
|
}
|