aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shmalko <rasen.dubi@gmail.com>2020-05-11 15:58:45 +0300
committerGitHub <noreply@github.com>2020-05-11 15:58:45 +0300
commit7a411e7ad673a2cd87d125a49aa38dbc0e6c1785 (patch)
tree27e89da48ce1bfb146635722240c97e46e6cf736
parent54ded21f74146fdc5320340f083207c374acca35 (diff)
parent30328c3c3327d41b813cc4fd4f7e4eaaded8bc6e (diff)
Merge pull request #85958 from ryneeverett/ycmd-typescript
ycmd: typescript completion support
-rw-r--r--pkgs/development/tools/misc/ycmd/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/ycmd/default.nix b/pkgs/development/tools/misc/ycmd/default.nix
index aee7af17730..02298d93b8a 100644
--- a/pkgs/development/tools/misc/ycmd/default.nix
+++ b/pkgs/development/tools/misc/ycmd/default.nix
@@ -2,6 +2,7 @@
, gocode ? null
, godef ? null
, gotools ? null
+, nodePackages ? null
, rustracerd ? null
, fixDarwinDylibNames, Cocoa ? null
}:
@@ -69,6 +70,9 @@ stdenv.mkDerivation {
TARGET=$out/lib/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls
mkdir -p $TARGET
ln -sf ${gotools}/bin/gopls $TARGET
+ '' + lib.optionalString (nodePackages != null) ''
+ TARGET=$out/lib/ycmd/third_party/tsserver
+ ln -sf ${nodePackages.typescript} $TARGET
'' + lib.optionalString (rustracerd != null) ''
TARGET=$out/lib/ycmd/third_party/racerd/target/release
mkdir -p $TARGET