plugins/syntax: fix tree-sitter parsers
This commit is contained in:
parent
6dd623dd38
commit
efd4f06e0d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue