From 85ff3a1a1ad9090ea19eccf947029a7cce45b799 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 3 Sep 2023 19:38:26 +0200 Subject: [PATCH] add rainbow brackets plugin --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,