From cbf90913f5a07dc432fb27cec510440dec802097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 29 Mar 2023 11:54:21 +0200 Subject: [PATCH] treesitter: add rainbow brackets --- lua/plugins/treesitter.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index d4ef35b..c08c83b 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -5,6 +5,7 @@ return { 'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-context', 'nvim-treesitter/nvim-treesitter-refactor', + 'mrjones2014/nvim-ts-rainbow', }, config = function() pcall(require('nvim-treesitter.install').update { with_sync = true }) @@ -29,6 +30,11 @@ return { node_decremental = '', }, }, + -- rainbow + rainbow = { + enable = true, + extended_mode = true, + }, -- refactor refactor = { highlight_definitions = { enable = true, clear_on_cursor_move = true },