feat(nvim): add rainbow brackets
This commit is contained in:
parent
8f335f2cbd
commit
c7f7e28de8
@ -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,
|
||||
},
|
||||
})
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user