feat: added :Lazy load foobar.nvim to load a plugin

This commit is contained in:
Folke Lemaitre 2022-12-19 14:19:10 +01:00
parent 8a0da3b27e
commit 2dd6230018
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 52 additions and 21 deletions

View file

@ -83,9 +83,7 @@ function M.commands()
for _, mode in ipairs(modes) do
if not mode.plugin and commands[mode.name] then
lines[#lines + 1] = {
("`:Lazy %s`"):format(mode.name) .. " or " .. ("`:Lazy%s`"):format(
mode.name:sub(1, 1):upper() .. mode.name:sub(2)
),
("`:Lazy %s`"):format(mode.name),
([[`require("lazy").%s()`]]):format(mode.name),
mode.key and ("`<%s>`"):format(mode.key) or "",
mode.desc,