aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/spawn.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-29 02:38:00 +0200
committerGitHub <noreply@github.com>2022-05-29 02:38:00 +0200
commit3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1 (patch)
tree8c849bca476cf6180fbcd8287adf1f09072a41cc /lua/nvim-lsp-installer/core/spawn.lua
parentrefactor(health): spawn processes via the spawn module (#732) (diff)
downloadmason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar.gz
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar.bz2
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar.lz
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar.xz
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.tar.zst
mason-3c21304c3f54caf0c00fab00cf1e4e9c0507b5d1.zip
feat(luarocks): use luarocks.bat executable if it's available (#731)
Closes #726.
Diffstat (limited to 'lua/nvim-lsp-installer/core/spawn.lua')
-rw-r--r--lua/nvim-lsp-installer/core/spawn.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/core/spawn.lua b/lua/nvim-lsp-installer/core/spawn.lua
index 764468f9..812848c3 100644
--- a/lua/nvim-lsp-installer/core/spawn.lua
+++ b/lua/nvim-lsp-installer/core/spawn.lua
@@ -12,6 +12,8 @@ local spawn = {
gem = platform.is_win and "gem.cmd" or "gem",
composer = platform.is_win and "composer.bat" or "composer",
gradlew = platform.is_win and "gradlew.bat" or "gradlew",
+ -- for hererocks installations
+ luarocks = (platform.is_win and vim.fn.executable "luarocks.bat" == 1) and "luarocks.bat" or "luarocks",
},
}