aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/platform.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-26 09:47:20 +0200
committerGitHub <noreply@github.com>2021-10-26 09:47:20 +0200
commitc7ef12d8f99490c984ec171c7341577513b435a8 (patch)
treeaea6fa17846dbc45c832fa28da1025ef03861d31 /lua/nvim-lsp-installer/platform.lua
parentmac's not fun (diff)
downloadmason-c7ef12d8f99490c984ec171c7341577513b435a8.tar
mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.gz
mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.bz2
mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.lz
mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.xz
mason-c7ef12d8f99490c984ec171c7341577513b435a8.tar.zst
mason-c7ef12d8f99490c984ec171c7341577513b435a8.zip
add synchronous variants of commands for better headless interop (#189)
Diffstat (limited to 'lua/nvim-lsp-installer/platform.lua')
-rw-r--r--lua/nvim-lsp-installer/platform.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/platform.lua b/lua/nvim-lsp-installer/platform.lua
index 44b99199..9ab54c6a 100644
--- a/lua/nvim-lsp-installer/platform.lua
+++ b/lua/nvim-lsp-installer/platform.lua
@@ -28,4 +28,6 @@ M.is_linux = not M.is_mac and M.is_unix
-- PATH separator
M.path_sep = M.is_win and ";" or ":"
+M.is_headless = #vim.api.nvim_list_uis() == 0
+
return M