diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 645ef38..ab6307c 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -155,6 +155,7 @@ function M.show(mode) local plugin = get_plugin() Util.open(plugin.dir .. "/README.md") end, + ["|(%S-)|"] = vim.cmd.help, -- vim help links ["(https?://%S+)"] = function(url) Util.open(url) end, diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 7388d13..f9689bd 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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