diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-03-13 19:50:09 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-03-13 20:17:31 +0100 |
commit | 95ab5a0da3a465351a781031698d6cc8a727584a (patch) | |
tree | d5930203908328f5b5c6669c03875cd799b11f48 /runtime/lua/vim/lsp/util.lua | |
parent | f01f18cdf4ffc3ce035db5fde2f45493eebb7fd9 (diff) | |
download | rneovim-95ab5a0da3a465351a781031698d6cc8a727584a.tar.gz rneovim-95ab5a0da3a465351a781031698d6cc8a727584a.tar.bz2 rneovim-95ab5a0da3a465351a781031698d6cc8a727584a.zip |
fix(help): force tree reparse after local addition insertion
Problem: *local-additions* in `help.txt` are inserted via `ml_append`,
which messes up treesitter highlighting of this file as the buffer
becomes desynced from the tree.
Solution: Add hack on top of hack by explicitly calling `mark_adjust`
and `changed_lines_buf` after each insertion.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions