Skip to content

Commit 226de71

Browse files
authored
fix(collate-grammars): prepare for nvim-treesitter main (#391)
1 parent fe157e3 commit 226de71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/vim-pack-dir.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
in linkFarm name (map mkEntryFromDrv drvs);
2323

2424
grammarMatcher = yes: builtins.filter (drv: let
25-
# NOTE: matches if pkgs.neovimUtils.grammarToPlugin was called on it.
25+
# NOTE: matches if pkgs.neovimUtils.grammarToPlugin or buildQueries from
26+
# pkgs/applications/editors/vim/plugins/nvim-treesitter/overrides.nix was called on it.
2627
# This only matters for collate_grammars setting and the lazy.nvim wrapper.
27-
cond = (builtins.match "^vimplugin-treesitter-grammar-.*" "${lib.getName drv}") != null;
28+
cond = (builtins.match "^vimplugin-(nvim-)?treesitter-(grammar|queries)-.*" "${lib.getName drv}") != null;
2829
match = if yes then cond else ! cond;
2930
in
3031
if drv ? outPath then match else ! yes);

0 commit comments

Comments
 (0)