pcall fzf-lua with the correct name when checking integrations

This commit is contained in:
Kevin Schweikert 2024-09-02 17:26:04 +02:00 committed by Cameron
parent bf68c0dfe1
commit fe4dac4683

View file

@ -1113,7 +1113,7 @@ function M.check_integration(name)
local enabled = M.values.integrations[name]
if enabled == nil or enabled == "auto" then
local success, _ = pcall(require, name)
local success, _ = pcall(require, name:gsub("_", "-"))
logger.info(("[CONFIG] Found auto integration '%s = %s'"):format(name, success))
return success
end