mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-03 22:51:17 +00:00
fix(ui): deduplicate plugins when selecting multiple (#1491)
This commit is contained in:
parent
4a8f813d81
commit
b77aaa08cb
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue