aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-01-28 12:22:25 -0800
committerGitHub <noreply@github.com>2025-01-28 12:22:25 -0800
commit6711fa27ca6e822bfd2394ec513671617cc53efd (patch)
tree42e5b44be8599e671ce577ffd3873aad52d583a8 /runtime/lua/vim/treesitter/query.lua
parentb88874d33c15bb0fd7a421230f8bf819056d7665 (diff)
downloadrneovim-6711fa27ca6e822bfd2394ec513671617cc53efd.tar.gz
rneovim-6711fa27ca6e822bfd2394ec513671617cc53efd.tar.bz2
rneovim-6711fa27ca6e822bfd2394ec513671617cc53efd.zip
fix(treesitter): recalculate folds on VimEnter #32240
**Problem:** In the case where the user sets the treesitter foldexpr upon startup in their `init.lua`, the fold info will be calculated before the parser has been loaded in, meaning folds will be properly calculated until edits or `:e`. **Solution:** Refresh fold information upon `VimEnter` as a sanity check to ensure that a parser really doesn't exist before always returning `'0'` in the foldexpr.
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions