Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-04-22 18:14:27 +00:00
committed by GitHub
37 changed files with 229 additions and 405 deletions
+21
View File
@@ -50,6 +50,9 @@
, CoreFoundation
, CoreServices
# nvim-treesitter dependencies
, tree-sitter
# sved dependencies
, glib
, gobject-introspection
@@ -364,6 +367,24 @@ self: super: {
dependencies = with super; [ popfix ];
});
# Usage:
# pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [ p.tree-sitter-c p.tree-sitter-java ... ])
# or for all grammars:
# pkgs.vimPlugins.nvim-treesitter.withPlugins (_: tree-sitter.allGrammars)
nvim-treesitter = super.nvim-treesitter.overrideAttrs (old: {
passthru.withPlugins =
grammarFn: self.nvim-treesitter.overrideAttrs (_: {
postPatch =
let
grammars = tree-sitter.withPlugins grammarFn;
in
''
rm -r parser
ln -s ${grammars} parser
'';
});
});
onehalf = super.onehalf.overrideAttrs (old: {
configurePhase = "cd vim";
});