aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/shell.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-07 03:19:12 +0200
committerWilliam Boman <william@redwill.se>2021-09-07 03:26:46 +0200
commitedf900163bf4ba1581b5350799a3ba4424a38006 (patch)
treedeb771f4318217ae07d0944d31e22a7a0621011d /lua/nvim-lsp-installer/installers/shell.lua
parentadd direct integration with libuv instead of going through termopen, also imp... (diff)
downloadmason-edf900163bf4ba1581b5350799a3ba4424a38006.tar
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.gz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.bz2
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.lz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.xz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.zst
mason-edf900163bf4ba1581b5350799a3ba4424a38006.zip
some fixes
Diffstat (limited to 'lua/nvim-lsp-installer/installers/shell.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/shell.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua
index 37b5e03f..2ba84305 100644
--- a/lua/nvim-lsp-installer/installers/shell.lua
+++ b/lua/nvim-lsp-installer/installers/shell.lua
@@ -11,11 +11,13 @@ local function shell(opts)
env = process.graft_env(opts.env or {}),
}, callback)
- local stdin = stdio[1]
+ if stdio then
+ local stdin = stdio[1]
- stdin:write(opts.cmd)
- stdin:write "\n"
- stdin:close()
+ stdin:write(opts.cmd)
+ stdin:write "\n"
+ stdin:close()
+ end
end
end