Merge pull request #232253 from figsoda/nvim

This commit is contained in:
figsoda 2023-05-18 22:18:19 -04:00 committed by GitHub
commit a85a2b4590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -41,10 +41,16 @@ let
];
in
runCommand "nvim-treesitter-grammar-${name}" { } ''
mkdir -p $out/parser
ln -s ${grammar}/parser $out/parser/${name}.so
'';
runCommand "nvim-treesitter-grammar-${name}"
{
meta = {
platforms = lib.platforms.all;
} // grammar.meta;
}
''
mkdir -p $out/parser
ln -s ${grammar}/parser $out/parser/${name}.so
'';
allGrammars = lib.attrValues generatedDerivations;

View file

@ -756,6 +756,7 @@ self: super: {
nvim-treesitter = super.nvim-treesitter.overrideAttrs (old:
callPackage ./nvim-treesitter/overrides.nix { } self super
);
nvim-treesitter-parsers = lib.recurseIntoAttrs self.nvim-treesitter.grammarPlugins;
nvim-ufo = super.nvim-ufo.overrideAttrs (old: {
dependencies = with self; [ promise-async ];