From 232232da5a2d012da0da27b424a016379c83c2f9 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 21 Dec 2022 11:18:41 +0100 Subject: [PATCH] fix(ui): install command can have plugins as a parameter --- TODO.md | 13 +++++++------ lua/lazy/view/commands.lua | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/TODO.md b/TODO.md index 3d795d2..5fe44a4 100644 --- a/TODO.md +++ b/TODO.md @@ -31,12 +31,12 @@ - [x] automatically reloads when config changes are detected - [x] handlers imply opt - [x] dependencies imply opt for deps -- [ ] show spec errors in health -- [ ] fix plugin details +- [x] show spec errors in health +- [x] fix plugin details - [ ] show disabled plugins (strikethrough?) - [ ] log file -- [ ] git tests -- [ ] Import specs from other plugin managers +- [x] git tests +- [x] Import specs from other plugin managers - [ ] [packspec](https://github.com/nvim-lua/nvim-package-specification) - [ ] add support to specify `engines`, `os` and `cpu` like in `package.json` @@ -53,11 +53,12 @@ - [x] When autoinstalling the plugins the cursor isn't focused on the floating window, but on the non-floating window in the background. - [ ] Doing `:Lazy clean` doesn't show which plugins were removed. -- [ ] Shouldn't the "Versioning" section be in the "Lockfile" chapter? -- [ ] Why are personal dotfiles used as examples? Dotfiles change all the time, +- [x] Shouldn't the "Versioning" section be in the "Lockfile" chapter? +- [x] Why are personal dotfiles used as examples? Dotfiles change all the time, there's no guarantee this will be relevant or even exist in two years. - [x] What's the difference between lazy-loading and verylazy-loading? - [x] Most emojis in "Configuration" aren't shown for me. - [x] add section on how to uninstall - [x] add `:Packadd` command or something similar - [ ] headless install +- [ ] better keys handling diff --git a/lua/lazy/view/commands.lua b/lua/lazy/view/commands.lua index a0ad820..eae1ba7 100644 --- a/lua/lazy/view/commands.lua +++ b/lua/lazy/view/commands.lua @@ -26,8 +26,8 @@ M.commands = { Manage.clear() View.show() end, - install = function() - Manage.install({ clear = true, mode = "install" }) + install = function(plugins) + Manage.install({ clear = true, mode = "install", plugins = plugins }) end, log = function(plugins) Manage.log({ clear = true, mode = "log", plugins = plugins })