From 250289b3d607bec4b7426934ec7d47fa6615f059 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> Date: Wed, 15 Jul 2020 09:24:57 +0200 Subject: [PATCH] Update README.md Add a notice on how to temporarily fix highlighting issues. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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.