mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Update README.md
Add a notice on how to temporarily fix highlighting issues.
This commit is contained in:
parent
e405802863
commit
250289b3d6
1 changed files with 9 additions and 0 deletions
|
|
@ -299,3 +299,12 @@ If you do, it's highly possible that this is the cause of the problem.
|
|||
If everything is okay, then it might be an actual error.
|
||||
|
||||
In both cases, feel free to open an issue here.
|
||||
|
||||
### I am expreiencing weird highlighting issues as in [#78[(https://github.com/nvim-treesitter/nvim-treesitter/issues/78)
|
||||
|
||||
This is a weell known issue, that is caused by the tree and the buffer getting out of sync.
|
||||
As this issue comes form upstream, we don't have any definitive fix. One thing you can do to force reparsing the whole buffer is to run :
|
||||
```vim
|
||||
:write | edit | TSBufEnable highlight
|
||||
```
|
||||
This will save, restore and enable highlighting for the current buffer, fixing the issue.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue