aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-11 13:18:06 +0200
committerWilliam Boman <william@redwill.se>2021-09-11 13:18:06 +0200
commit94416d12549679dd35f22d73dbd980f6ce506d70 (patch)
tree02d81793a1d36e7df67d6a6979a0f35b620d4790 /lua
parentui/display: more robust rendering (diff)
downloadmason-94416d12549679dd35f22d73dbd980f6ce506d70.tar
mason-94416d12549679dd35f22d73dbd980f6ce506d70.tar.gz
mason-94416d12549679dd35f22d73dbd980f6ce506d70.tar.bz2
mason-94416d12549679dd35f22d73dbd980f6ce506d70.tar.lz
mason-94416d12549679dd35f22d73dbd980f6ce506d70.tar.xz
mason-94416d12549679dd35f22d73dbd980f6ce506d70.tar.zst
mason-94416d12549679dd35f22d73dbd980f6ce506d70.zip
installers/std: fix gradlew on windows
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/installers/std.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/installers/std.lua b/lua/nvim-lsp-installer/installers/std.lua
index ff0ceebd..e9f90435 100644
--- a/lua/nvim-lsp-installer/installers/std.lua
+++ b/lua/nvim-lsp-installer/installers/std.lua
@@ -1,5 +1,6 @@
local path = require "nvim-lsp-installer.path"
local process = require "nvim-lsp-installer.process"
+local platform = require "nvim-lsp-installer.platform"
local installers = require "nvim-lsp-installer.installers"
local shell = require "nvim-lsp-installer.installers.shell"
@@ -106,7 +107,7 @@ end
function M.gradlew(opts)
return function(server, callback, context)
- process.spawn(path.concat { server.root_dir, "gradlew" }, {
+ process.spawn(path.concat { server.root_dir, platform.is_win and "gradlew.bat" or "gradlew" }, {
args = opts.args,
cwd = server.root_dir,
stdio_sink = context.stdio_sink,