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({
|
nvim_treesitter.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
'norg',
|
"norg",
|
||||||
},
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = true,
|
|
||||||
disable = { 'yaml' },
|
|
||||||
},
|
},
|
||||||
matchup = {
|
matchup = {
|
||||||
enable = true,
|
enable = true,
|
||||||
@ -18,4 +16,9 @@ nvim_treesitter.setup({
|
|||||||
yati = {
|
yati = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
rainbow = {
|
||||||
|
enable = true,
|
||||||
|
extended_mode = true,
|
||||||
|
max_file_lines = nil,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
@ -143,6 +143,14 @@ return packer.startup({
|
|||||||
|
|
||||||
MiniCursorword = { bg = colors.sumiInk3 },
|
MiniCursorword = { bg = colors.sumiInk3 },
|
||||||
MiniCursorwordCurrent = { 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,
|
end,
|
||||||
@ -189,6 +197,9 @@ return packer.startup({
|
|||||||
use({
|
use({
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
run = ":TSUpdate",
|
run = ":TSUpdate",
|
||||||
|
requires = {
|
||||||
|
"p00f/nvim-ts-rainbow",
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.treesitter")
|
require("plugins.configs.treesitter")
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user