fix: use require instead of reload in pcalls (#4038)

fix(core): reload error signal
This commit is contained in:
YinAqu 2023-04-15 19:03:25 +08:00 committed by GitHub
parent 23ace671d6
commit 6544837f42
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ M.config = function()
end
M.setup = function()
local status_ok, illuminate = pcall(reload, "illuminate")
local status_ok, illuminate = pcall(require, "illuminate")
if not status_ok then
return
end

View file

@ -28,7 +28,7 @@ M.config = function()
end
M.setup = function()
local status_ok, indent_blankline = pcall(reload, "indent_blankline")
local status_ok, indent_blankline = pcall(require, "indent_blankline")
if not status_ok then
return
end

View file

@ -100,7 +100,7 @@ function M.icon_setup()
end
function M.setup()
local status_ok, lir = pcall(reload, "lir")
local status_ok, lir = pcall(require, "lir")
if not status_ok then
return
end

View file

@ -103,7 +103,7 @@ function M.bootstrap()
end
function M.setup()
local status_ok, mason = pcall(reload, "mason")
local status_ok, mason = pcall(require, "mason")
if not status_ok then
return
end