mirror of https://github.com/folke/lazy.nvim.git
fix(ui): deduplicate plugins when selecting multiple (#1491)
This commit is contained in:
parent
4a8f813d81
commit
b77aaa08cb
|
@ -306,8 +306,12 @@ function M:setup_modes()
|
||||||
f, t = t, f
|
f, t = t, f
|
||||||
end
|
end
|
||||||
for i = f, t do
|
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
|
end
|
||||||
|
plugins = vim.tbl_values(plugins)
|
||||||
else
|
else
|
||||||
plugins[1] = self.render:get_plugin()
|
plugins[1] = self.render:get_plugin()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue