Skip to content

Commit

Permalink
fix(config): determine headless only during startup. Fixes #1608
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 4, 2024
1 parent 0f2786b commit 6fdd904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ M.mapleader = nil
---@type string
M.maplocalleader = nil

local headless = #vim.api.nvim_list_uis() == 0
function M.headless()
return #vim.api.nvim_list_uis() == 0
return headless
end

---@param opts? LazyConfig
Expand Down

0 comments on commit 6fdd904

Please sign in to comment.