Rainbow parens for neovim using tree-sitter. Needs nvim-treesitter.
Tested languages - lua, java, clojure, fennel, python, css. Should work with any language, except bash and idk probably something else too.
(Update - lua works after neovim/neovim/#133357 was merged)
require'nvim-treesitter.configs'.setup {
rainbow = {
enable = true,
disable = {'bash'} -- please disable bash until I figure #1 out
}
}I've used the gruvbox palette because it is nice and subtle. I wanted to use VIBGYOR for an actual rainbow, but
- indigo and blue look the same.
- the colours were too bright and distracting.
To change the colours, edit lua/rainbow/colors.lua. This is safe, the file is in gitignore.
Huge thanks to @vigoux, @theHamsta, @sogaiu and @steelsojka for all their help


