diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-11-13 15:45:48 +0200 |
|---|---|---|
| committer | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-11-17 12:46:22 +0200 |
| commit | 9e2599df05896f43ee63a2eed55641ab0e2d2934 (patch) | |
| tree | 6267f18a815f7b6d476cb21cde3fe3b9336f78e8 /runtime/lua/vim/_extui.lua | |
| parent | 5d258854a7fb7df08139c54f5dca1f7f8a490c75 (diff) | |
| download | rneovim-9e2599df05896f43ee63a2eed55641ab0e2d2934.tar.gz rneovim-9e2599df05896f43ee63a2eed55641ab0e2d2934.tar.bz2 rneovim-9e2599df05896f43ee63a2eed55641ab0e2d2934.zip | |
fix(pack)!: adjust install confirm (no error on "No", show names)
Problem: Installation confirmation has several usability issues:
- Choosing "No" results in a `vim.pack.add()` error. This was by
design to ensure that all later code that *might* reference
presumably installed plugin will not get executed. However, this
is often too restrictive since there might be no such code (like
if plugin's effects are automated in its 'plugin/' directory).
Instead the potential code using not installed plugin will throw
an error.
No error on "No" will also be useful for planned lockfile repair.
- List of soon-to-be-installed plugins doesn't mention plugin names.
This might be confusing if plugins are installed under different
name.
Solution: Silently drop installation step if user chose "No" and show
plugin names in confirmation text (together with their pretty aligned
sources).
Diffstat (limited to 'runtime/lua/vim/_extui.lua')
0 files changed, 0 insertions, 0 deletions