aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/fold.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/fold.lua b/lua/nvim-treesitter/fold.lua
index b3bdb35ab..faaf5f542 100644
--- a/lua/nvim-treesitter/fold.lua
+++ b/lua/nvim-treesitter/fold.lua
@@ -12,7 +12,7 @@ local folds_levels = utils.memoize_by_buf_tick(function(bufnr)
local max_fold_level = api.nvim_win_get_option(0, 'foldnestmax')
local matches
- if query.has_fold(lang) then
+ if query.has_folds(lang) then
matches = query.get_capture_matches(bufnr, "@fold", "folds")
elseif query.has_locals(lang) then
matches = query.get_capture_matches(bufnr, "@scope", "locals")