mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(ui): show any helps files and added hover handler
This commit is contained in:
parent
6e44be0f2d
commit
13b5688487
2 changed files with 6 additions and 0 deletions
|
@ -376,6 +376,11 @@ function M:details(plugin)
|
|||
if Util.file_exists(plugin.dir .. "/README.md") then
|
||||
table.insert(props, { "readme", "README.md" })
|
||||
end
|
||||
Util.ls(plugin.dir .. "/doc", function(_, name)
|
||||
if name:find("%.txt$") then
|
||||
table.insert(props, { "help", "|" .. name:gsub("%.txt", "") .. "|" })
|
||||
end
|
||||
end)
|
||||
|
||||
for handler in pairs(Handler.handlers) do
|
||||
if plugin[handler] then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue