New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice of Breaking Changes #2293
Comments
#2272 switched our Lua parser to one with better coverage. Old queries are not compatible with the new parser. To make sure you update to the new one, do |
#2436 updated the LaTeX parser to a version that is incompatible with previous queries. Plugins and color schemes that bundle their own queries need to be adapted. In case of errors, please bisect your config to find the outdated plugin and open an issue in the corresponding repository. |
#2471 deprecates the This is now set via the local ft_to_parser = require"nvim-treesitter.parsers".filetype_to_parsername
ft_to_parser.someft = "python" -- the someft filetype will use the python parser and queries. |
#2764 has renamed the functions
|
#2763 deprecates Rationale: Over time, the category |
#2808 removed all bundled filetype detection and ftplugins. These should be handled by Neovim (which includes them as of 0.7.0); new ones are easy to add via the new |
#2809 removes |
#3035 updated the Swift parser to a version that is incompatible with some previous queries. Plugins and color schemes that bundle their own queries need to be adapted. As always, check your runtime path for outdated parsers or queries: echo nvim_get_runtime_file('*/swift.so', v:true)
echo nvim_get_runtime_file('queries/swift/*.scm', v:true) |
#3048 changed the Markdown parser to a new, split, parser that improves performance. Important: you need to install both To upgrade,
Queries are not compatible; as always, make sure you do not have stale parsers or queries lying around. |
#2818 changed the Vala parser to an officially maintained one. Plugins and color schemes that bundle their own queries need to be adapted. |
#3555 switched the help parser to a different repository and improved implementation. To make sure you update to the new one, do |
#3656 removed the obsolete hi link TSPunctDelimit Delimiter do hi link @punctuation.delimiter Delimiter Nvim-treesitter now requires Nvim 0.8.0 or higher. |
#3791 switched the Erlang parser to a different maintained repository. To make sure you update to the new one, do |
#4524 rework indentation styling/format to be aligned with upstream, any plugins/modules that modified this will have to use the new captures specified in the docs |
#4593 renamed the |
#4944 switched the Matlab parser to a different maintained repository. To make sure you update to the new one, do |
#5185 changed the upstream proto parser to a maintained one, just update the parser with |
#5234 raised the minimum Neovim version to v0.9.1 and changed the format of all injection queries to the upstream syntax. If you need to stay on Nvim 0.8.x, lock nvim-treesitter to v0.9.1. |
#5222 switched the upstream perl parser to a maintained one, just update the parser with :TSUninstall perl and :TSInstall perl |
#5902 raised the minimum Neovim version to v0.9.2, which includes a required fix for empty injections. |
#5895 changed the list of admissible capture names to more closely align with upstream tree-sitter and Helix, making sharing/adapting queries easier. This requires changes in colorschemes; see CONTRIBUTING.md and the commit message 1ae9b0e for a detailed list of changes. If you cannot adapt your colorscheme (yet), pin nvim-treesitter at v0.9.2. |
#5779 switched the angular parser to one supporting v17. To update, |
#6027 switched the slint parser to a new official upstream version. To update, |
This issue is used to announce breaking changes (and possibly other critical info). Users are strongly encouraged to subscribe to this issue to get notified of such changes.
Every breaking change is added as a new comment.
The text was updated successfully, but these errors were encountered: