feat(nvim): add rainbow brackets

This commit is contained in:
Price Hiller 2022-09-16 21:31:33 -05:00
parent 8f335f2cbd
commit c7f7e28de8
2 changed files with 18 additions and 4 deletions

View File

@ -1,13 +1,11 @@
local nvim_treesitter = require('nvim-treesitter.configs')
local nvim_treesitter = require("nvim-treesitter.configs")
nvim_treesitter.setup({
ensure_installed = {
'norg',
"norg",
},
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
disable = { 'yaml' },
},
matchup = {
enable = true,
@ -18,4 +16,9 @@ nvim_treesitter.setup({
yati = {
enable = true,
},
rainbow = {
enable = true,
extended_mode = true,
max_file_lines = nil,
},
})

View File

@ -143,6 +143,14 @@ return packer.startup({
MiniCursorword = { bg = colors.sumiInk3 },
MiniCursorwordCurrent = { bg = colors.sumiInk3 },
rainbowcol1 = { fg = colors.oniViolet },
rainbowcol2 = { fg = colors.crystalBlue },
rainbowcol3 = { fg = colors.lightBlue },
rainbowcol4 = { fg = colors.sakuraPink },
rainbowcol5 = { fg = colors.springGreen },
rainbowcol6 = { fg = colors.springViolet2 },
rainbowcol7 = { fg = colors.carpYellow },
},
})
end,
@ -189,6 +197,9 @@ return packer.startup({
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
requires = {
"p00f/nvim-ts-rainbow",
},
config = function()
require("plugins.configs.treesitter")
end,