Skip to content

Commit

Permalink
fix(fetches): iter_matches API for older nvims
Browse files Browse the repository at this point in the history
- Check `:help Query:iter_matches()` on `nvim` `0.10.2`
  • Loading branch information
reo101 committed Dec 22, 2024
1 parent 5b322f8 commit c959a85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion fnl/nix-update/fetches.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,13 @@
(let [fetches-query (gen-fetches-query)]
;;; For each query match
(icollect [_pattern matcher _metadata
(fetches-query:iter_matches root bufnr 0 -1)]
(fetches-query:iter_matches
root
bufnr
0
-1
;; NOTE: stable `nvim` compatability
{:all true})]
;;; Construct a table from ...
(do
(local res {})
Expand Down
2 changes: 1 addition & 1 deletion lua/nix-update/fetches.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c959a85

Please sign in to comment.