diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-09-13 11:23:26 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-14 18:26:30 +0200 |
| commit | 50991e370b0d253ada9029000d23189a95f9dec3 (patch) | |
| tree | f576043443fbc8260c8e6701723ee7483588aafc /lua | |
| parent | Fix typo in foldexpr example (diff) | |
| download | nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar.gz nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar.bz2 nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar.lz nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar.xz nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.tar.zst nvim-treesitter-50991e370b0d253ada9029000d23189a95f9dec3.zip | |
Folds: rename query files to folds.scm to be consistent
We use plural names for all query files except folds.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/fold.lua | 2 | ||||
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/fold.lua b/lua/nvim-treesitter/fold.lua index 30ae288fb..b3bdb35ab 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 diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index ca991dcab..d308e59b9 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -17,7 +17,7 @@ M.base_language_map = { tsx = {'typescript', 'javascript', 'jsx'}, } -M.built_in_query_groups = {'highlights', 'locals', 'textobjects', 'fold'} +M.built_in_query_groups = {'highlights', 'locals', 'textobjects', 'folds'} -- Creates a function that checks whether a certain query exists -- for a specific language. |
