feat: dependencies are opt=true by default if they only appear as a dep

This commit is contained in:
Folke Lemaitre 2022-11-29 19:51:37 +01:00
parent 5810635a26
commit 908b9adf9c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 128 additions and 26 deletions

View file

@ -13,7 +13,7 @@ M.modes = {
{ name = "log", key = "L", desc = "Show recent updates for all plugins" },
{ name = "restore", key = "R", desc = "Updates all plugins to the state in the lockfile" },
{ name = "profile", key = "P", desc = "Show detailed profiling", toggle = true },
{ name = "help", key = "g?", hide = true, desc = "Toggle this help page", toggle = true },
{ name = "help", key = "?", hide = true, desc = "Toggle this help page", toggle = true },
{ plugin = true, name = "update", key = "u", desc = "Update this plugin. This will also update the lockfile" },
{

View file

@ -2,7 +2,6 @@ local Config = require("lazy.core.config")
local Util = require("lazy.util")
local Sections = require("lazy.view.sections")
local Handler = require("lazy.core.handler")
local Plugin = require("lazy.core.plugin")
local Git = require("lazy.manage.git")
local Text = require("lazy.view.text")
@ -95,7 +94,7 @@ end
function M:title()
self:append(" lazy.nvim ", "LazyH1"):center():nl()
self:append("press "):append("g?", "LazySpecial"):append(" for help"):center():nl()
self:append("press "):append("<?>", "LazySpecial"):append(" for help"):center():nl()
self:append("https://github.com/folke/lazy.nvim", "LazyMuted"):center():nl()
local View = require("lazy.view")