neovim/runtime/lua/vim/treesitter
Jaehwang Jung 8474f52978 fix(treesitter.foldexpr): robustness against ctrl-c
Problem:
Exiting the insert mode with ctrl-c does not trigger InsertLeave
autocmd. This may lead to nil error in treesitter foldexpr.

Solution:
Check nil. Folds still can be stale after exiting the insert mode with
ctrl-c, but it will be eventually updated correctly.

An alternative solution would be to ensure that exiting the insert mode
always triggers do_foldupdate. This can be done either by "fixing"
ctrl-c or with on_key callback that checks ctrl-c (nvim-cmp does this).
2024-07-08 11:06:26 +01:00
..
_fold.lua fix(treesitter.foldexpr): robustness against ctrl-c 2024-07-08 11:06:26 +01:00
_meta.lua refactor(lua): improve type annotations 2024-06-11 12:45:43 +01:00
_query_linter.lua refactor(treesitter): redesign query iterating 2024-03-19 14:24:59 +00:00
_range.lua feat(treesitter)!: incremental injection parsing 2023-08-12 16:11:36 +01:00
dev.lua fix(treesitter): display fields for anonymous nodes in :InspectTree 2024-07-05 10:11:48 +02:00
health.lua fix(treesitter): text alignment in checkhealth vim.treesitter 2024-05-13 09:19:54 +02:00
highlighter.lua fix(treesitter): ensure syntaxset augroup exists (#29542) 2024-07-03 07:40:42 +08:00
language.lua fix(treesitter): enforce lowercase language names (#28546) 2024-04-28 16:27:47 +02:00
languagetree.lua refactor(lua): improve type annotations 2024-06-11 12:45:43 +01:00
query.lua perf(treesitter): use child_containing_descendant() in has-ancestor? (#28512) 2024-05-16 16:57:58 +02:00