diff --git a/init.lua b/init.lua index b132f42..3fdffb0 100644 --- a/init.lua +++ b/init.lua @@ -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 = '', }, }, + 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,