diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-31 18:23:32 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-31 18:23:32 -0400 |
commit | 4705785a0b95542299dd6cfc3132011ba81c24f2 (patch) | |
tree | 9c764bf8d5e98744d6c657dd0432468062aa60bf /src/lpm.lua | |
parent | 3145a7624adfb632245aa8bed9e39a727adf25cc (diff) | |
download | lite-xl-plugin-manager-4705785a0b95542299dd6cfc3132011ba81c24f2.tar.gz lite-xl-plugin-manager-4705785a0b95542299dd6cfc3132011ba81c24f2.zip |
Added in logging, and fixed a bugPR/restructuring
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 8f70dce..cb08fef 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2578,7 +2578,7 @@ not commonly used publically. local files = system.ls(lpm_plugins_path) lpm_plugins = common.concat( common.map(common.grep(files, function(path) return path:find("%.lua$") end), function(path) return lpm_plugins_path .. PATHSEP .. path end), - common.grep(common.map(common.grep(files, function(path) return not path:find("%.lua$") end), function(path) return lpm_plugins_path .. PATHSEP .. path .. PATHSEP .. "init.lua" end), function(path) system.stat(path) end) + common.grep(common.map(common.grep(files, function(path) return not path:find("%.lua$") end), function(path) return lpm_plugins_path .. PATHSEP .. path .. PATHSEP .. "init.lua" end), function(path) return system.stat(path) end) ) end local env = setmetatable({}, { __index = _G, __newindex = function(t, k, v) _G[k] = v end }) @@ -2592,6 +2592,7 @@ not commonly used publically. else log.warning("unable to load lpm plugin " .. v .. ": " .. err) end + if VERBOSE then log.action("Loaded plugin " .. v) end end end |