[vim/vim] PackAdded autocmd-event (Issue #18714)

3 views
Skip to first unread message

ubaldot

unread,
Nov 10, 2025, 12:42:44 PM (yesterday) Nov 10
to vim/vim, Subscribed
ubaldot created an issue (vim/vim#18714)

I was thinking that a PackAdded autocmd-event comes handy in many situations.
For example, when pack foo is added through packadd foo, then a user-defined foo_config.vim is run automatically through such a PackAdded autocmd-event.

What do you think?


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18714@github.com>

Christian Brabandt

unread,
11:43 AM (9 hours ago) 11:43 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18714)

How would you imagine this to work? The maintainer of the package foo adds an autocommand to it's own package that loads a corresponding _foo package? Or the user should add a custom autocommand when cloning the foo_config package? Or it should be done completely automatic?
I am not seeing the advantage right now, I think package loading should be explicit and dependency management could make it arbitrarily complex.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18714/3517807604@github.com>

Reply all
Reply to author
Forward
0 new messages