neovim/test/functional
Jaehwang Jung c7e7f1d4b4
fix(treesitter): make foldexpr work without highlighting (#24167)
Problem: Treesitter fold is not updated if treesitter hightlight is not
active. More precisely, updating folds requires `LanguageTree:parse()`.

Solution: Call `parse()` before computing folds and compute folds when
lines are added/removed.

This doesn't guarantee correctness of the folds, because some changes
that don't add/remove line won't update the folds even if they should
(e.g. adding pair of braces). But it is good enough for most cases,
while not introducing big overhead.

Also, if highlighting is active, it is likely that
`TSHighlighter._on_buf` already ran `parse()` (or vice versa).
2023-06-27 19:05:09 +01:00
..
api fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
autocmd fix(events)!: trigger CursorMoved later on switching window (#23711) 2023-06-04 09:09:22 +08:00
core fix(startup): "nvim -l foo.lua" may not set arg0 #24161 2023-06-26 02:38:48 -07:00
editor refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
ex_cmds fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
fixtures refactor(lsp): extract common execute command functionality (#24065) 2023-06-20 18:36:18 +02:00
legacy vim-patch:9.0.1667: regression test doesn't fail when fix is reverted 2023-06-27 08:26:11 +08:00
lua fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
options fix(NVIM_APPNAME): show error message if $NVIM_APPNAME is invalid 2023-05-28 16:04:54 +02:00
plugin feat(lsp): opt-in to dynamicRegistration for inlay hints (#24102) 2023-06-22 19:39:57 +02:00
provider fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
shada test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value 2023-05-22 13:02:07 +06:00
terminal vim-patch:9.0.1634: message is cleared when removing mode message 2023-06-16 08:55:03 +08:00
treesitter fix(treesitter): make foldexpr work without highlighting (#24167) 2023-06-27 19:05:09 +01:00
ui fix(charset): fix wrong display of 0xffff (#24158) 2023-06-26 11:52:52 +08:00
vimscript fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
example_spec.lua
helpers.lua fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
preload.lua test: remove unused variable (#21552) 2022-12-29 07:20:42 +08:00