aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-31 18:23:32 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-03-31 18:23:32 -0400
commit4705785a0b95542299dd6cfc3132011ba81c24f2 (patch)
tree9c764bf8d5e98744d6c657dd0432468062aa60bf /src
parent3145a7624adfb632245aa8bed9e39a727adf25cc (diff)
downloadlite-xl-plugin-manager-PR/restructuring.tar.gz
lite-xl-plugin-manager-PR/restructuring.zip
Added in logging, and fixed a bugPR/restructuring
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua3
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