From a623992d99b0c4f4c01b63781a8b4073d44fe247 Mon Sep 17 00:00:00 2001 From: David Lukes Date: Wed, 22 Apr 2020 16:04:10 +0200 Subject: Make installer for sumneko_lua more robust - I had to install clang for the installation to complete -> check for that up front - quote PATH update (especially on WSL, PWD and PATH will easily contain whitespace) --- lua/nvim_lsp/sumneko_lua.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim_lsp/sumneko_lua.lua b/lua/nvim_lsp/sumneko_lua.lua index d799510b..e3d0cacc 100644 --- a/lua/nvim_lsp/sumneko_lua.lua +++ b/lua/nvim_lsp/sumneko_lua.lua @@ -39,8 +39,8 @@ local function make_installer() error('Need either "ninja" or "curl" (to download ninja) to install this.') return end - if not util.has_bins("sh", "chmod", "unzip") then - error('Need the binaries "sh", "chmod", "unzip" to install this') + if not util.has_bins("sh", "chmod", "unzip", "clang") then + error('Need the binaries "sh", "chmod", "unzip", "clang" to install this') return end local script = [=[ @@ -56,7 +56,7 @@ which ninja >/dev/null || { unzip $ninja_zip chmod +x ninja } - export PATH=$PWD:$PATH + export PATH="$PWD:$PATH" } # clone project -- cgit v1.2.3-70-g09d2