Skip to content

Commit

Permalink
Add typescript language server with nix specific fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itsfarseen committed Jun 29, 2022
1 parent 77b5f63 commit 74698b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ let
--set CARGO_TARGET_DIR target/rust-analyzer
'';
};
typescript-language-server-fixed = pkgs.symlinkJoin {
name = "typescript-language-server";
paths = [ pkgs.nodePackages.typescript-language-server ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/typescript-language-server \
--add-flags --tsserver-path=${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib/
'';
};
in
{
home.packages = with pkgs; [
Expand All @@ -27,5 +36,6 @@ in
nodejs-16_x
nodePackages.typescript
yarn
typescript-language-server-fixed
];
}

0 comments on commit 74698b0

Please sign in to comment.