plugins/syntax: fix tree-sitter parsers

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-13 00:05:40 +03:00
parent 6dd623dd38
commit efd4f06e0d
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -24,8 +24,9 @@ let
tree-sitter = (inputs.tree-sitter.override { inherit extraGrammars; });
grammars = tree-sitter.withPlugins (g: [ g.tree-sitter-d2 ]);
nvim-treesitter = inputs.nvim-treesitter.withAllGrammars.overrideAttrs (oldAttrs: {
passthru.dependencies = oldAttrs.passthru.dependencies ++ [
nvim-treesitter-with-grammars = inputs.nvim-treesitter.withAllGrammars;
nvim-treesitter = nvim-treesitter-with-grammars.overrideAttrs (oldAttrs: {
passthru.dependencies = nvim-treesitter-with-grammars.dependencies ++ [
(runCommand "nvim-treesitter-d2-grammar" { } ''
mkdir -p $out/parser
ln -s ${grammars}/d2.so $out/parser/d2.so