summaryrefslogtreecommitdiff
path: root/dged.nix
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-03-05 09:02:45 +0100
committerAlbert Cervin <albert@acervin.com>2024-03-05 09:02:45 +0100
commitf266c624ad197ea6add738df70702dcbf93cb198 (patch)
treea8c2ce9a04ecef065530847108b78ae579b62c0a /dged.nix
parent678104121a1aeca7851b91bc536de5548efdf651 (diff)
downloaddged-f266c624ad197ea6add738df70702dcbf93cb198.tar.gz
dged-f266c624ad197ea6add738df70702dcbf93cb198.tar.xz
dged-f266c624ad197ea6add738df70702dcbf93cb198.zip
Make syntax path a proper search path
Can be set with the $TREESITTER_GRAMMARS variable, separated by ':'
Diffstat (limited to 'dged.nix')
-rw-r--r--dged.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/dged.nix b/dged.nix
index 0458d58..a529004 100644
--- a/dged.nix
+++ b/dged.nix
@@ -49,6 +49,11 @@ stdenv.mkDerivation {
rev = "master";
hash = "sha256-q20gLVLs0LpqRpgo/qNRDfExbWXhICWZjM1ux4+AT6M=";
};
+ # remove broken symlinks
+ postInstall = ''
+ unlink "$out/queries/highlights-javascript.scm"
+ unlink "$out/queries/highlights-typescript.scm"
+ '';
};
"gitcommit" = tree-sitter.buildGrammar {
language = "gitcommit";