mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
core:config: fix issue #1626
Check whether nvim is currently headless, not whether it was headless at startup.
This commit is contained in:
parent
44cd12fa27
commit
76737a97e4
1 changed files with 1 additions and 2 deletions
|
@ -253,9 +253,8 @@ M.mapleader = nil
|
||||||
---@type string
|
---@type string
|
||||||
M.maplocalleader = nil
|
M.maplocalleader = nil
|
||||||
|
|
||||||
local headless = #vim.api.nvim_list_uis() == 0
|
|
||||||
function M.headless()
|
function M.headless()
|
||||||
return headless
|
return #vim.api.nvim_list_uis() == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param opts? LazyConfig
|
---@param opts? LazyConfig
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue