fix node packages in vim tools

This commit is contained in:
Sean Buckley 2024-07-29 23:46:40 -04:00
parent f3a238e747
commit 9936e7062a

View file

@ -1,4 +1,6 @@
{ symlinkJoin { symlinkJoin
, runCommand
, black , black
, efm-langserver , efm-langserver
, lua-language-server , lua-language-server
@ -9,6 +11,13 @@
, yaml-language-server , yaml-language-server
}: }:
let
symlinkBin = path: runCommand "symlinkBin" { } ''
mkdir -p $out/bin
ln -s "${path}" $out/bin/
'';
in
symlinkJoin { symlinkJoin {
name = "bck-nvim-tools"; name = "bck-nvim-tools";
paths = [ paths = [
@ -16,10 +25,11 @@ symlinkJoin {
efm-langserver efm-langserver
lua-language-server lua-language-server
nil nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright pyright
vscode-langservers-extracted vscode-langservers-extracted
yaml-language-server yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
]; ];
} }