{"id":13496046,"url":"https://github.com/HiPhish/nvim-ts-rainbow2","last_synced_at":"2025-03-28T17:34:52.284Z","repository":{"id":84202121,"uuid":"586264427","full_name":"HiPhish/nvim-ts-rainbow2","owner":"HiPhish","description":"Rainbow delimiters for Neovim through Tree-sitter","archived":true,"fork":false,"pushed_at":"2024-05-21T00:41:04.000Z","size":1278,"stargazers_count":338,"open_issues_count":10,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-16T23:08:16.241Z","etag":null,"topics":["neovim","rainbow","treesitter"],"latest_commit_sha":null,"homepage":"https://gitlab.com/HiPhish/nvim-ts-rainbow2","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HiPhish.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-07T14:26:19.000Z","updated_at":"2024-10-10T10:26:40.000Z","dependencies_parsed_at":"2024-01-16T09:53:46.634Z","dependency_job_id":"9124c966-db53-4b7b-a247-288710832e99","html_url":"https://github.com/HiPhish/nvim-ts-rainbow2","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiPhish%2Fnvim-ts-rainbow2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiPhish%2Fnvim-ts-rainbow2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiPhish%2Fnvim-ts-rainbow2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiPhish%2Fnvim-ts-rainbow2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HiPhish","download_url":"https://codeload.github.com/HiPhish/nvim-ts-rainbow2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222402909,"owners_count":16978762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","rainbow","treesitter"],"created_at":"2024-07-31T19:01:41.446Z","updated_at":"2024-10-31T11:30:40.023Z","avatar_url":"https://github.com/HiPhish.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":".. default-role:: code\n\n\n###############################\n Rainbow delimiters for Neovim\n###############################\n\n.. warning::\n\n   This plugin is deprecated! Please use `rainbow-delimiters.nvim`_ instead\n   (`GitHub mirror`_).  This plugin is implemented as a module for\n   `nvim-treesitter`_, but nvim-treesitter has deprecated the module feature.\n   Hence why I have created a new standalone plugin which does not depend on\n   nvim-treesitter.\n\nThis Neovim plugin provides alternating syntax highlighting (“rainbow\nparentheses”) for Neovim, powered by `Tree-sitter`_.  The goal is to have a\nhackable plugin which allows for different configuration of queries and\nstrategies, both globally and per file type.  Users can override and extend the\nbuilt-in defaults through their own configuration.\n\n\nInstallation and setup\n######################\n\nInstallation\n============\n\nThe plugin depends on `nvim-treesitter`_.  Other than that it is installed like\nany other Neovim plugin.\n\nSetup\n=====\n\nSince this is a module for nvim-treesitter you need to setup everything in its\nconfiguration.  Here is an example:\n\n.. code:: lua\n\n   require('nvim-treesitter.configs').setup {\n     rainbow = {\n       enable = true,\n       -- list of languages you want to disable the plugin for\n       disable = { 'jsx', 'cpp' }, \n       -- Which query to use for finding delimiters\n       query = 'rainbow-parens',\n       -- Highlight the entire buffer all at once\n       strategy = require('ts-rainbow').strategy.global,\n     }\n   }\n\nPlease refer to the `manual`_ for more details.\n\n\nHelp wanted\n###########\n\nThere are only so many languages which I understand to the point that I can\nwrite queries for them.  If you want support for a new language please consider\ncontributing code.  See the CONTRIBUTING_ for details.\n\n\nStatus of the plugin\n####################\n\nTree-sitter support in Neovim is still experimental.  This plugin and its API\nshould be considered stable insofar as breaking changes will only happen if\nchanges to Neovim necessitates them.\n\n.. warning::\n\n   There is currently a shortcoming in Neovim's Tree-sitter API which makes it\n   so that only the first node of a capture group can be highlighted.  Please\n   see `neovim/neovim#17099`_ for details.  Affected queries:\n\n   - HTML `rainbow-parens`\n   - JSX (Javascript + React.js) `rainbow-parens-react` (affects React tags\n     only)\n   - Python (`rainbow-parens`) (affects only the `for ... in` inside\n     comprehensions)\n   - TSX (Typescript + React.js) `rainbow-parens-react` (affects React tags\n     only)\n   - Vue.js `rainbow-parens`\n\n   Most of these are related to HTML-like tags, so you can use an alternative\n   query instead.  See the manual_ (`:h ts-rainbow-query`) for a list of extra\n   queries.\n\n\nScreenshots\n###########\n\nBash\n====\n\n.. image:: https://user-images.githubusercontent.com/4954650/212133420-4eec7fd3-9458-42ef-ba11-43c1ad9db26b.png\n\nC\n=\n\n.. image:: https://user-images.githubusercontent.com/4954650/212133423-8b4f1f00-634a-42c1-9ebc-69f8057a63e6.png\n\nCommon Lisp\n===========\n\n.. image:: https://user-images.githubusercontent.com/4954650/212133425-85496400-4e24-4afd-805c-55ca3665c4d9.png\n\nJava\n====\n\n.. image:: https://user-images.githubusercontent.com/4954650/212133426-7615f902-e39f-4625-bb91-2e757233c7ba.png\n\nLaTeX\n=====\n\nUsing the `blocks` query to highlight the entire `\\begin` and `\\end`\ninstructions.\n\n.. image:: https://user-images.githubusercontent.com/4954650/212133427-46182f57-bfd8-4cbe-be1f-9aad5ddfd796.png\n\n\nLicense\n#######\n\nLicensed under the Apache-2.0 license. Please see the `LICENSE`_ file for\ndetails.\n\n\nAttribution\n###########\n\nThis is a fork of a previous Neovim plugin, the original repository is\navailable under https://sr.ht/~p00f/nvim-ts-rainbow/.\n\nAttributions from the original author\n=====================================\n\nHuge thanks to @vigoux, @theHamsta, @sogaiu, @bfredl and @sunjon and\n@steelsojka for all their help\n\n\n.. _Tree-sitter: https://tree-sitter.github.io/tree-sitter/\n.. _nvim-treesitter: https://github.com/nvim-treesitter/nvim-treesitter\n.. _CONTRIBUTING: CONTRIBUTING.rst\n.. _LICENSE: LICENSE\n.. _manual: doc/ts-rainbow.txt\n.. _neovim/neovim#17099: https://github.com/neovim/neovim/pull/17099\n.. _rainbow-delimiters.nvim: https://gitlab.com/HiPhish/rainbow-delimiters.nvim\n.. _GitHub mirror: https://github.com/hiphish/rainbow-delimiters.nvim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHiPhish%2Fnvim-ts-rainbow2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHiPhish%2Fnvim-ts-rainbow2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHiPhish%2Fnvim-ts-rainbow2/lists"}