aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorDavid Lukes <dafydd.lukes@gmail.com>2020-04-22 16:04:10 +0200
committerTJ DeVries <devries.timothyj@gmail.com>2020-04-22 11:56:29 -0400
commita623992d99b0c4f4c01b63781a8b4073d44fe247 (patch)
treee5fdfb3f26864da9874c7c49d4a4f215348af38d /lua
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar.gz
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar.bz2
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar.lz
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar.xz
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.tar.zst
nvim-lspconfig-a623992d99b0c4f4c01b63781a8b4073d44fe247.zip
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)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim_lsp/sumneko_lua.lua6
1 files changed, 3 insertions, 3 deletions
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