aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-12 17:10:53 +0100
committerGitHub <noreply@github.com>2022-01-12 17:10:53 +0100
commit1ddcaa2f07a16925260e565390e015be474a7da1 (patch)
treefffbf2c256f71b9491ed35dc257a3b485b471e93 /lua
parentfix(opencl_ls): update release asset filenames (diff)
downloadmason-1ddcaa2f07a16925260e565390e015be474a7da1.tar
mason-1ddcaa2f07a16925260e565390e015be474a7da1.tar.gz
mason-1ddcaa2f07a16925260e565390e015be474a7da1.tar.bz2
mason-1ddcaa2f07a16925260e565390e015be474a7da1.tar.lz
mason-1ddcaa2f07a16925260e565390e015be474a7da1.tar.xz
mason-1ddcaa2f07a16925260e565390e015be474a7da1.tar.zst
mason-1ddcaa2f07a16925260e565390e015be474a7da1.zip
fix(angularls): prepend cmd with 'cmd.exe /C' on Windows (#420)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/servers/angularls/init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/angularls/init.lua b/lua/nvim-lsp-installer/servers/angularls/init.lua
index 7e2efa27..feb31190 100644
--- a/lua/nvim-lsp-installer/servers/angularls/init.lua
+++ b/lua/nvim-lsp-installer/servers/angularls/init.lua
@@ -1,4 +1,5 @@
local server = require "nvim-lsp-installer.server"
+local platform = require "nvim-lsp-installer.platform"
local npm = require "nvim-lsp-installer.installers.npm"
local Data = require "nvim-lsp-installer.data"
local path = require "nvim-lsp-installer.path"
@@ -13,7 +14,7 @@ end
return function(name, root_dir)
local function get_cmd(workspace_dir)
- return {
+ local cmd = {
"ngserver",
"--stdio",
"--tsProbeLocations",
@@ -27,6 +28,12 @@ return function(name, root_dir)
","
),
}
+ if platform.is_win then
+ table.insert(cmd, 1, "cmd.exe")
+ table.insert(cmd, 2, "/C")
+ end
+
+ return cmd
end
return server.Server:new {