mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix: use require
instead of reload
in pcalls (#4038)
fix(core): reload error signal
This commit is contained in:
parent
23ace671d6
commit
6544837f42
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue