aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-15 09:24:57 +0200
committerGitHub <noreply@github.com>2020-07-15 09:24:57 +0200
commit250289b3d607bec4b7426934ec7d47fa6615f059 (patch)
tree90c64bd57a084088e73bb6c76d891e8c6e8a7174
parentfix(configs): simplify module setup process (diff)
downloadnvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar.gz
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar.bz2
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar.lz
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar.xz
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.tar.zst
nvim-treesitter-250289b3d607bec4b7426934ec7d47fa6615f059.zip
Update README.md
Add a notice on how to temporarily fix highlighting issues.
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 96e1515b9..95efa6ccc 100644
--- a/README.md
+++ b/README.md
@@ -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.