aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2023-12-10 22:18:48 +0900
committerJaehwang Jung <tomtomjhj@gmail.com>2023-12-12 02:29:59 +0900
commit6f75facb9d755e2e3a10a9a1d6d258a12578dc14 (patch)
tree49729635b9e81122643ff94204da1331edb57ddc /test/functional/lua/vim_spec.lua
parent7c6f9690f74eea5ae922f1d0db808de61ef61ab0 (diff)
downloadrneovim-6f75facb9d755e2e3a10a9a1d6d258a12578dc14.tar.gz
rneovim-6f75facb9d755e2e3a10a9a1d6d258a12578dc14.tar.bz2
rneovim-6f75facb9d755e2e3a10a9a1d6d258a12578dc14.zip
fix(treesitter): improve vim.treesitter.foldexpr
* Collect on_bytes and flush at the invocation of the scheduled callback to take account of commands that triggers multiple on_bytes. * More accurately track movement of folds so that foldexpr returns reasonable values even when the scheduled computation is not run yet. * Start computing folds from the line above (+ foldminlines) the changed lines to handle the folds that are removed due to the size limit. * Shrink folds that end at the line at which another fold starts to assign proper level to that line. * Use level '=' for lines that are not computed yet.
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions