aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-04-24 18:43:14 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-04-24 18:43:14 -0400
commit2c80884348f4bfef96dcd69c16959a4837f050b4 (patch)
tree0642f3e17026c95bed2247b53ce9b8bca818bcb8
parent3aab9d2284e8c2a7f6ccb3fa767ec3fbd150f0fa (diff)
downloadlite-xl-plugin-manager-2c80884348f4bfef96dcd69c16959a4837f050b4.tar.gz
lite-xl-plugin-manager-2c80884348f4bfef96dcd69c16959a4837f050b4.zip
Fixed addons.
-rw-r--r--plugins/plugin_manager/init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua
index 49aa1f9..711b734 100644
--- a/plugins/plugin_manager/init.lua
+++ b/plugins/plugin_manager/init.lua
@@ -171,8 +171,14 @@ if config.plugins.plugin_manager.addons then
table.insert(addons, v)
end
end
- run({ "apply", table.unpack(addons) }):done(function(status)
- if status["changed"] then command.perform("core:restart") end
+ core.log("Applying declarative addon list.")
+ run({ "apply", "plugin_manager", table.unpack(addons) }):done(function(status)
+ if status["changed"] then
+ command.perform("core:restart")
+ core.log("Addon list applied, changes required. Performing restart...")
+ else
+ core.log("Addon list applied, no changes required.")
+ end
end)
end