fix(config): Don't cache check for attached UIs (#340)

UIs can attach and detach from headless nvim dynamically
(indeed, this is one of its use cases).
This commit is contained in:
Brian Koropoff 2023-01-07 00:01:45 -08:00 committed by GitHub
parent 7eadaacc48
commit 05b55deb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -31,7 +31,7 @@ end
---@param mode? string
function M.show(mode)
if Config.headless then
if Config.headless() then
return
end