mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +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
|
||||
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…
Add table
Add a link
Reference in a new issue