updated plugins

This commit is contained in:
2023-09-28 13:44:34 +02:00
parent 5fff121742
commit 5dd9bd87ec
2 changed files with 48 additions and 21 deletions

View File

@ -3,6 +3,7 @@ return {
dependencies = {
'nvim-treesitter/nvim-treesitter',
},
main = 'ibl',
config = function()
local opt = vim.opt -- to set options
opt.listchars:append('eol:↴')
@ -10,13 +11,37 @@ return {
-- opt.listchars:append 'space:⋅'
opt.listchars:append('trail: ')
opt.listchars:append('tab:→ ')
require('indent_blankline').setup {
show_end_of_line = true,
use_treesitter = true,
show_current_context = true,
show_current_context_start = false,
space_char_blankline = ' ',
-- context_patterns = { 'class', 'function', 'method', 'block', '^if', '^for', '^while' },
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 = '#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)
vim.g.rainbow_delimiters = { highlight = highlight }
require('ibl').setup {
scope = {
highlight = highlight,
show_start = false
}
}
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
end,
}