core:config: fix issue #1626

Check whether nvim is currently headless, not whether it was headless at startup.
This commit is contained in:
Brian Koropoff 2024-07-07 16:46:00 -07:00
commit 76737a97e4

View file

@ -253,9 +253,8 @@ M.mapleader = nil
---@type string
M.maplocalleader = nil
local headless = #vim.api.nvim_list_uis() == 0
function M.headless()
return headless
return #vim.api.nvim_list_uis() == 0
end
---@param opts? LazyConfig