From b14bd0c5d75ca9da91d7675e98b89450b08f0143 Mon Sep 17 00:00:00 2001 From: Lateef Alabi-Oki Date: Sun, 22 Aug 2021 03:45:38 -0400 Subject: export proper location of haskell language servers (#60) `${__dirname}` was exporting the location of the `Packer` installation folder, instead of the location of the Haskell language servers and `hls` script. This change fixes the issue for me. --- lua/nvim-lsp-installer/servers/hls/install.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-lsp-installer/servers/hls/install.mjs b/lua/nvim-lsp-installer/servers/hls/install.mjs index 5bd8b6cd..d711fdec 100644 --- a/lua/nvim-lsp-installer/servers/hls/install.mjs +++ b/lua/nvim-lsp-installer/servers/hls/install.mjs @@ -22,7 +22,9 @@ await $`rm hls.tar.gz`; await $`chmod +x haskell*`; const scriptContent = `#!/usr/bin/env bash -PATH="$PATH:${__dirname}" "${__dirname}/haskell-language-server-wrapper" --lsp`; +HLS_DIR=$(dirname "$0") +export PATH=$PATH:$HLS_DIR +haskell-language-server-wrapper --lsp`; await fs.writeFile("./hls", scriptContent); await $`chmod +x hls` -- cgit v1.2.3-70-g09d2