mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix(ui): when closing details, jump to plugin header. Closes #1338
This commit is contained in:
parent
5bddef2415
commit
3772914075
2 changed files with 20 additions and 1 deletions
|
@ -122,6 +122,15 @@ function M:get_plugin(row)
|
|||
end
|
||||
end
|
||||
|
||||
---@param selected {name:string, kind?: LazyPluginKind}
|
||||
function M:get_row(selected)
|
||||
for _, loc in ipairs(self.locations) do
|
||||
if loc.kind == selected.kind and loc.name == selected.name then
|
||||
return loc.from
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function M:title()
|
||||
self:nl()
|
||||
local modes = vim.tbl_filter(function(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue