summaryrefslogtreecommitdiff
path: root/lua/lvim/bootstrap.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/bootstrap.lua')
-rw-r--r--lua/lvim/bootstrap.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua
index 051f7698..7545b3be 100644
--- a/lua/lvim/bootstrap.lua
+++ b/lua/lvim/bootstrap.lua
@@ -2,6 +2,7 @@ local M = {}
local uv = vim.loop
local path_sep = uv.os_uname().version:match "Windows" and "\\" or "/"
+local in_headless = #vim.api.nvim_list_uis() == 0
---Join path segments that were passed as input
---@return string
@@ -77,7 +78,7 @@ function M:init(base_dir)
vim.fn.mkdir(get_cache_dir(), "p")
-- FIXME: currently unreliable in unit-tests
- if not os.getenv "LVIM_TEST_ENV" then
+ if not in_headless then
_G.PLENARY_DEBUG = false
require("lvim.impatient").setup {
path = join_paths(self.cache_dir, "lvim_cache"),