finally realised what I was doing wrong, dofile is NOT the same thing as require

This commit is contained in:
2026-08-25 19:48:45 +01:00
parent 1b6b03b1c1
commit f6ba90efde

View File

@@ -14,7 +14,7 @@ end
-- Check if the plugin module is present -- Check if the plugin module is present
-- If it is, require it -- If it is, require it
local ok, err = pcall(require, "plugins") local ok, err = pcall(dofile, "plugins")
if not ok then if not ok then
hl.exec_cmd("notify-send 'Lua error' '" .. tostring(err) .. "'") hl.exec_cmd("notify-send 'Lua error' '" .. tostring(err) .. "'")
end end