finally realised what I was doing wrong, dofile is NOT the same thing as require
This commit is contained in:
@@ -14,7 +14,7 @@ end
|
||||
|
||||
-- Check if the plugin module is present
|
||||
-- If it is, require it
|
||||
local ok, err = pcall(require, "plugins")
|
||||
local ok, err = pcall(dofile, "plugins")
|
||||
if not ok then
|
||||
hl.exec_cmd("notify-send 'Lua error' '" .. tostring(err) .. "'")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user