Skip to content
Discussion options

You must be logged in to vote

What I want is to define autocmds related to a specific vim.pack.add call right next to it, without splitting the configuration across different places, which makes cleanup inconvenient. We literally have to care about where the first call is made whether it's in a plugin, in init.lua, or somewhere else. In practice, users expect install events to be triggered when vim.pack.add is called.

I did think about several possible solutions to this and all of them provided trade-offs that I don't think are worthwhile:

  • All of them add very non-trivial complexity to the code, which is already kind of not that straightforward.
  • Delaying installation from the lockfile until its corresponding vim.pa…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@shushtain
Comment options

@drowning-cat
Comment options

@shushtain
Comment options

Comment options

You must be logged in to vote
5 replies
@folliehiyuki
Comment options

@echasnovski
Comment options

@drowning-cat
Comment options

@echasnovski
Comment options

Answer selected by drowning-cat
@drowning-cat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants