mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
Add troubleshooting for when a parser changes
This should be merged after https://github.com/nvim-treesitter/nvim-treesitter/pull/243
This commit is contained in:
parent
6133257ed6
commit
688161c174
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
|
@ -287,7 +287,8 @@ You can also manually add query paths to the runtime path by adding this to your
|
|||
|
||||
## Troubleshooting
|
||||
|
||||
Before doing anything run `:checkhealth nvim_treesitter`. This will help you find where the bug might come from.
|
||||
Before doing anything make sure you have the latest version of this plugin and run `:checkhealth nvim_treesitter`.
|
||||
This will help you find where the bug might come from.
|
||||
|
||||
### Feature `X` does not work for `{language}`...
|
||||
|
||||
|
|
@ -297,6 +298,13 @@ If everything is okay, then it might be an actual error.
|
|||
|
||||
In both cases, feel free to [open an issue here](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose).
|
||||
|
||||
### I get `Error detected while processing .../plugin/nvim-treesitter.vim` everytime I open Neovim
|
||||
|
||||
This is probably due to a change in a parser's grammar or its queries.
|
||||
Try updating the parser that you suspect has changed (`:TSUpdate {language}`) or all of them (`:TSUpdate`).
|
||||
If the error persists after updating all parsers,
|
||||
please [open an issue](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose).
|
||||
|
||||
### I experience weird highlighting issues similar to [#78](https://github.com/nvim-treesitter/nvim-treesitter/issues/78)
|
||||
|
||||
This is a well known issue, which arise when the tree and the buffer are getting out of sync.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue