mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
fix(folds): has_fold -> has_folds
This commit is contained in:
parent
09c703193f
commit
ee9dd63ecd
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue