diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua index d20425ed..a64ac7da 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua @@ -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, + }, }) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 372727ff..7c5c724f 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -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,