mirror of https://github.com/folke/lazy.nvim.git
fix(config): determine headless only during startup. Fixes #1608
This commit is contained in:
parent
0f2786bcc9
commit
6fdd904ee4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue