docs: document foldmethod workarounds

This commit is contained in:
Thomas Vigouroux 2020-08-27 14:59:01 +02:00 committed by Thomas Vigouroux
parent 5f37847dd8
commit dee3c242d9

View file

@ -477,3 +477,8 @@ As this issue comes from upstream, we don't have any finite fix. To get around t
```
This will save, restore and enable highlighting for the current buffer, fixing the issue.
## I experience bugs when using `nvim-treesitter`'s `foldexpr` similar to [#194](https://github.com/nvim-treesitter/nvim-treesitter/issues/194)
This might happen, and is known to happen with `vim-clap`, to avoid those kind of errors, please use
`setlocal` instead of `set` for the appropriate filetypes.