aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/log.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/log.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/log.lua')
-rw-r--r--lua/nvim-lsp-installer/log.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/log.lua b/lua/nvim-lsp-installer/log.lua
index d93fa444..a395a049 100644
--- a/lua/nvim-lsp-installer/log.lua
+++ b/lua/nvim-lsp-installer/log.lua
@@ -1,6 +1,7 @@
local Data = require "nvim-lsp-installer.data"
local path = require "nvim-lsp-installer.path"
local settings = require "nvim-lsp-installer.settings"
+local platform = require "nvim-lsp-installer.platform"
local tbl_pack = Data.tbl_pack
@@ -10,7 +11,7 @@ local config = {
-- Should print the output to neovim while running
-- values: 'sync','async',false
- use_console = false,
+ use_console = platform.is_headless,
-- Should highlighting be used in console (using echohl)
highlights = true,