summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/fold.lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-13 11:23:26 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-14 18:26:30 +0200
commit50991e370b0d253ada9029000d23189a95f9dec3 (patch)
treef576043443fbc8260c8e6701723ee7483588aafc /lua/nvim-treesitter/fold.lua
parent97113abedcb7cc916d8b9aa7978720ced6a20228 (diff)
Folds: rename query files to folds.scm to be consistent
We use plural names for all query files except folds.
Diffstat (limited to 'lua/nvim-treesitter/fold.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 30ae288f..b3bdb35a 100644
--- a/lua/nvim-treesitter/fold.lua
+++ b/lua/nvim-treesitter/fold.lua
@@ -13,7 +13,7 @@ local folds_levels = utils.memoize_by_buf_tick(function(bufnr)
local matches
if query.has_fold(lang) then
- matches = query.get_capture_matches(bufnr, "@fold", "fold")
+ matches = query.get_capture_matches(bufnr, "@fold", "folds")
elseif query.has_locals(lang) then
matches = query.get_capture_matches(bufnr, "@scope", "locals")
else