add rainbow brackets plugin

This commit is contained in:
Mans Ziesel 2023-09-03 19:38:26 +02:00
parent d223b17d85
commit 85ff3a1a1a

View File

@ -210,6 +210,7 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter',
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
'HiPhish/nvim-ts-rainbow2',
},
build = ':TSUpdate',
},
@ -368,6 +369,15 @@ require('nvim-treesitter.configs').setup {
node_decremental = '<M-space>',
},
},
rainbow = {
enable = true,
-- list of languages you want to disable the plugin for
-- disable = { 'jsx', 'cpp' },
-- Which query to use for finding delimiters
query = 'rainbow-parens',
-- Highlight the entire buffer all at once
strategy = require('ts-rainbow').strategy.global,
},
textobjects = {
select = {
enable = true,