aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui/shared.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-10-23 18:35:27 +0300
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-10-23 20:28:09 +0300
commit16a6559ec6e18d053f161755684656551a3c3b83 (patch)
treebd5b251bfd6366eed8ba755424b3b740f4e2e3a7 /runtime/lua/vim/_extui/shared.lua
parenta9db6ec6fa127b57912bc59e5d03f7e99d22607f (diff)
downloadrneovim-16a6559ec6e18d053f161755684656551a3c3b83.tar.gz
rneovim-16a6559ec6e18d053f161755684656551a3c3b83.tar.bz2
rneovim-16a6559ec6e18d053f161755684656551a3c3b83.zip
fix(pack)!: do not trigger `PackChanged[Pre] kind=update` during install
Problem: `PackChanged[Pre]` events with `kind=update` are triggered both during plugin's initial installation and after already installed plugin was updated. It was a deliberate decision to allow writing only a single update hook to act as a dedicated "build" entry point (like execute `make` or `cargo build —release`). This mimics how other plugin managers have a single "build" command. This was a result of 'mini.deps' experience with the different approach: "update" hooks are not run during install. This proved to be confusing as it requires to write two hooks. But also the reason might be that 'mini.deps' names it "checkout" hook instead of "update". However, the `vim.pack` event approach makes it lower cost to handle separate "update" and "install" events. Something like `if ev.data.kind == 'install' or ev.data.kind == 'update' then` instead of two autocommands. Plus this makes clearer separation of events. Solution: do not trigger `PackChanged[Pre] kind=update` event during install.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
0 files changed, 0 insertions, 0 deletions