add rainbow brackets plugin
This commit is contained in:
parent
d223b17d85
commit
85ff3a1a1a
10
init.lua
10
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 = '<M-space>',
|
||||
},
|
||||
},
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user