diff options
author | Adam <adamdharrison@gmail.com> | 2022-09-27 21:08:55 -0400 |
---|---|---|
committer | Adam <adamdharrison@gmail.com> | 2022-09-27 21:08:55 -0400 |
commit | cc5c601b6ba8d65ffb411f6ea5bc47a5ea0b88b7 (patch) | |
tree | 4957c5ff5a98d4024f9809c3283fd991a0ac515f /lpm.lua | |
parent | 4b6b95cb6f55afe88c433b589d686fa1882d0f7d (diff) | |
download | lite-xl-plugin-manager-cc5c601b6ba8d65ffb411f6ea5bc47a5ea0b88b7.tar.gz lite-xl-plugin-manager-cc5c601b6ba8d65ffb411f6ea5bc47a5ea0b88b7.zip |
Mostly done.
Diffstat (limited to 'lpm.lua')
-rw-r--r-- | lpm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1212,6 +1212,7 @@ local function lpm_lite_xl_run(version, ...) for i, str in ipairs({ ... }) do local name, version = common.split(":", str) local plugin = get_plugin(name, version, { mod_version = lite_xl.mod_version }) + if not plugin then error("can't find plugin " .. str) end table.insert(plugins, plugin) end local bottle = Bottle.new(lite_xl, plugins) @@ -1268,7 +1269,7 @@ local function lpm_plugin_list() for j,plugin in ipairs(repo.plugins) do table.insert(result.plugins, { name = plugin.name, - status = plugin:is_installed() and "installed" or (system_bottle.lite_xl:is_compatible(plugin) and "available" or "incompatible"), + status = plugin:is_installed(system_bottle) and "installed" or (system_bottle.lite_xl:is_compatible(plugin) and "available" or "incompatible"), version = "" .. plugin.version, dependencies = plugin.dependencies, description = plugin.description, |