mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
fix(config): determine headless only during startup. Fixes #1608
This commit is contained in:
parent
0f2786bcc9
commit
6fdd904ee4
1 changed files with 2 additions and 1 deletions
|
@ -253,8 +253,9 @@ 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 #vim.api.nvim_list_uis() == 0
|
return headless
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param opts? LazyConfig
|
---@param opts? LazyConfig
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue