Skip to content

Commit

Permalink
fix(ui): deduplicate plugins when selecting multiple (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndianBoy42 committed May 31, 2024
1 parent 4a8f813 commit b77aaa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,12 @@ function M:setup_modes()
f, t = t, f
end
for i = f, t do
plugins[#plugins + 1] = self.render:get_plugin(i)
local plugin = self.render:get_plugin(i)
if plugin then
plugins[plugin.name] = plugin
end
end
plugins = vim.tbl_values(plugins)
else
plugins[1] = self.render:get_plugin()
end
Expand Down

0 comments on commit b77aaa0

Please sign in to comment.