fix(ui): install command can have plugins as a parameter

This commit is contained in:
Folke Lemaitre 2022-12-21 11:18:41 +01:00
parent 4ca30390ec
commit 232232da5a
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 9 additions and 8 deletions

13
TODO.md
View File

@ -31,12 +31,12 @@
- [x] automatically reloads when config changes are detected - [x] automatically reloads when config changes are detected
- [x] handlers imply opt - [x] handlers imply opt
- [x] dependencies imply opt for deps - [x] dependencies imply opt for deps
- [ ] show spec errors in health - [x] show spec errors in health
- [ ] fix plugin details - [x] fix plugin details
- [ ] show disabled plugins (strikethrough?) - [ ] show disabled plugins (strikethrough?)
- [ ] log file - [ ] log file
- [ ] git tests - [x] git tests
- [ ] Import specs from other plugin managers - [x] Import specs from other plugin managers
- [ ] [packspec](https://github.com/nvim-lua/nvim-package-specification) - [ ] [packspec](https://github.com/nvim-lua/nvim-package-specification)
- [ ] add support to specify `engines`, `os` and `cpu` like in `package.json` - [ ] 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 - [x] When autoinstalling the plugins the cursor isn't focused on the floating
window, but on the non-floating window in the background. window, but on the non-floating window in the background.
- [ ] Doing `:Lazy clean` doesn't show which plugins were removed. - [ ] Doing `:Lazy clean` doesn't show which plugins were removed.
- [ ] Shouldn't the "Versioning" section be in the "Lockfile" chapter? - [x] Shouldn't the "Versioning" section be in the "Lockfile" chapter?
- [ ] Why are personal dotfiles used as examples? Dotfiles change all the time, - [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. 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] What's the difference between lazy-loading and verylazy-loading?
- [x] Most emojis in "Configuration" aren't shown for me. - [x] Most emojis in "Configuration" aren't shown for me.
- [x] add section on how to uninstall - [x] add section on how to uninstall
- [x] add `:Packadd` command or something similar - [x] add `:Packadd` command or something similar
- [ ] headless install - [ ] headless install
- [ ] better keys handling

View File

@ -26,8 +26,8 @@ M.commands = {
Manage.clear() Manage.clear()
View.show() View.show()
end, end,
install = function() install = function(plugins)
Manage.install({ clear = true, mode = "install" }) Manage.install({ clear = true, mode = "install", plugins = plugins })
end, end,
log = function(plugins) log = function(plugins)
Manage.log({ clear = true, mode = "log", plugins = plugins }) Manage.log({ clear = true, mode = "log", plugins = plugins })