treesitter: add rainbow brackets

This commit is contained in:
Matej Janezic 2023-03-29 11:54:21 +02:00
parent f54bc8e7d8
commit cbf90913f5
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ return {
'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-textobjects',
'nvim-treesitter/nvim-treesitter-context', 'nvim-treesitter/nvim-treesitter-context',
'nvim-treesitter/nvim-treesitter-refactor', 'nvim-treesitter/nvim-treesitter-refactor',
'mrjones2014/nvim-ts-rainbow',
}, },
config = function() config = function()
pcall(require('nvim-treesitter.install').update { with_sync = true }) pcall(require('nvim-treesitter.install').update { with_sync = true })
@ -29,6 +30,11 @@ return {
node_decremental = '<C-Bslash>', node_decremental = '<C-Bslash>',
}, },
}, },
-- rainbow
rainbow = {
enable = true,
extended_mode = true,
},
-- refactor -- refactor
refactor = { refactor = {
highlight_definitions = { enable = true, clear_on_cursor_move = true }, highlight_definitions = { enable = true, clear_on_cursor_move = true },