summaryrefslogtreecommitdiff
path: root/lua/lvim/bootstrap.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-11-28 16:52:56 +0100
committerGitHub <[email protected]>2021-11-28 16:52:56 +0100
commit5c0ccff78f199c46aea47fa756e7c748477e5c65 (patch)
treed2183ddc54271ad5f43113e9cca8100b6a9f4dd7 /lua/lvim/bootstrap.lua
parent24be0ef1ef36b8cc725655e920104e9676b72f25 (diff)
fix: correct order for cmp's setup (#1999)
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"),