fix(folds): has_fold -> has_folds

This commit is contained in:
Stephan Seitz 2020-09-15 23:42:34 +02:00 committed by Thomas Vigouroux
parent 09c703193f
commit ee9dd63ecd

View file

@ -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")