aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager/plugin_view.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-11-02 13:31:52 -0400
committerAdam Harrison <adamdharrison@gmail.com>2022-11-02 13:31:52 -0400
commit98a93d36d77cceaf5e94840659ab467c7cb794f1 (patch)
tree02e306c5b9ed37b9b9a17eb2808daaef5c4427a5 /plugins/plugin_manager/plugin_view.lua
parenta1718a858d002bc722d147f5eeb1a32449ab139e (diff)
downloadlite-xl-plugin-manager-98a93d36d77cceaf5e94840659ab467c7cb794f1.tar.gz
lite-xl-plugin-manager-98a93d36d77cceaf5e94840659ab467c7cb794f1.zip
Updated to set plugin to master.
Diffstat (limited to 'plugins/plugin_manager/plugin_view.lua')
-rw-r--r--plugins/plugin_manager/plugin_view.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/plugin_manager/plugin_view.lua b/plugins/plugin_manager/plugin_view.lua
index 3972cf4..4cc2502 100644
--- a/plugins/plugin_manager/plugin_view.lua
+++ b/plugins/plugin_manager/plugin_view.lua
@@ -33,7 +33,7 @@ function PluginView:new()
PluginView.super.new(self)
self.scrollable = true
self.show_incompatible_plugins = false
- self.plugin_table_columns = { "Name", "Version", "Modversion", "Status", "Tags", "Description" }
+ self.plugin_table_columns = { "Name", "Version", "Modversion", "Status", "Tags", "Author", "Description" }
self.hovered_plugin = nil
self.hovered_plugin_idx = nil
self.selected_plugin = nil
@@ -48,7 +48,7 @@ function PluginView:new()
end
local function get_plugin_text(plugin)
- return plugin.name, plugin.version, plugin.mod_version, plugin.status, join(", ", plugin.tags), plugin.description-- (plugin.description or ""):gsub("%[[^]+%]%([^)]+%)", "")
+ return plugin.name, plugin.version, plugin.mod_version, plugin.status, join(", ", plugin.tags), plugin.author or "unknown", plugin.description-- (plugin.description or ""):gsub("%[[^]+%]%([^)]+%)", "")
end
@@ -157,7 +157,7 @@ function PluginView:draw()
end
x = x + style.padding.x
for j, v in ipairs({ get_plugin_text(plugin) }) do
- local color = (plugin.status == "installed" or plugin.status == "orphan") and style.good or
+ local color = (plugin.status == "installed" or plugin.status == "bundled" or plugin.status == "orphan") and style.good or
(plugin.status == "core" and style.warn or
(plugin.status == "special" and style.modified or style.text)
)
@@ -226,12 +226,12 @@ end, {
["plugin-manager:install-hovered"] = function() plugin_view:install(plugin_view.hovered_plugin) end
})
command.add(function()
- return core.active_view and core.active_view:is(PluginView) and plugin_view.selected_plugin and (plugin_view.selected_plugin.status == "installed" or plugin_view.selected_plugin.status == "orphan")
+ return core.active_view and core.active_view:is(PluginView) and plugin_view.selected_plugin and (plugin_view.selected_plugin.status == "installed" or plugin_view.selected_plugin.status == "orphan" or plugin_view.selected_plugin.status == "bundled")
end, {
["plugin-manager:uninstall-selected"] = function() plugin_view:uninstall(plugin_view.selected_plugin) end
})
command.add(function()
- return core.active_view and core.active_view:is(PluginView) and plugin_view.hovered_plugin and (plugin_view.hovered_plugin.status == "installed" or plugin_view.hovered_plugin.status == "orphan")
+ return core.active_view and core.active_view:is(PluginView) and plugin_view.hovered_plugin and (plugin_view.hovered_plugin.status == "installed" or plugin_view.hovered_plugin.status == "orphan" or plugin_view.hovered_plugin.status == "bundled")
end, {
["plugin-manager:uninstall-hovered"] = function() plugin_view:uninstall(plugin_view.hovered_plugin) end,
["plugin-manager:reinstall-hovered"] = function() plugin_view:reinstall(plugin_view.hovered_plugin) end