summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-06-01 19:10:03 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-06-01 19:10:03 -0400
commitc26d15c3a5abd2ec51f777b0337d632e850d087d (patch)
treeac17e0dd075ce464d73526a9ceb92e80dc1f767a
parent5ddcc445e5abea1162fd1cc1dcc2f7aecc9db6b5 (diff)
Add rainbow delimiters
-rw-r--r--lua/jacksontaylorxyz/packer.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua
index 2cf9c06..d41f6eb 100644
--- a/lua/jacksontaylorxyz/packer.lua
+++ b/lua/jacksontaylorxyz/packer.lua
@@ -77,6 +77,21 @@ return require('packer').startup(function(use)
use 'SuneelFreimuth/vim-gemtext' -- Syntax support for gemini markdown
use 'buoto/gotests-vim' -- Better Golang Testing
use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) -- Even better syntax highlighting
+ use { -- This highlights things like curly braces in different colors so the matching one is seen easier
+ 'mrjones2014/nvim-ts-rainbow',
+ config = function()
+ require('nvim-treesitter.configs').setup({
+ rainbow = {
+ enable = true,
+ -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
+ extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
+ max_file_lines = nil, -- Do not enable for files with more than n lines, int
+ -- colors = {}, -- table of hex strings
+ -- termcolors = {} -- table of colour name strings
+ },
+ })
+ end
+ }
use { -- A super simple way to setup all the lsp stuff.
'VonHeikemen/lsp-zero.nvim',
branch = 'v1.x',