Closed younger-1 closed 2 years ago
The keys event
and after
both deal with when a plugin is loaded by packer. For the ui plugin spec you are saying that you want to load 'ui' either on BufRead
events or after dap
is loaded. after
tells packer that something should be loaded after another plugin is loaded. This dose not say that when ui
is loaded that it should also load dap
. This would be requires
.
dap
will only be loaded when require('dap')
is called (because the module
key is used).
Hope that clarifies it.
Thanks your explanation~
nvim --version
: v0.7.2git --version
: 2.37.1Steps to reproduce
When use
after
key together withevent
key like this one:Actual behaviour
nvim-dap-ui
will be loaded beforenvim-dap
Expected behaviour
the plugin
nvim-dap-ui
will only be loaded after the pluginnvim-dap
loadedpacker files
Plugin specification file(s)
Post or link your plugin specification files here, if you aren't able to provide a minimal reproducerpacker log file
Post the contents of ~/.cache/nvim/packer.nvim.log herepacker compiled file
Post the contents of `packer_compiled.vim` here