How is the merge order of plugin specs determined? Is it deterministic? #1630
Replies: 2 comments 1 reply
-
specs get parsed in the order they are processed |
Beta Was this translation helpful? Give feedback.
1 reply
-
Does the order of specs correspond to the processing order (see my last comment)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have plugin specs of this kind:
Where
foo.default
is a package that defines various plugin specs, includinghrsh7th/nvim-cmp
with some keys . I would like to overwriteopts
,keys
,config
, etc. of some plugins that are defined byfoo.default
, e.g.keys
ofhrsh7th/nvim-cmp
. I expected<Leader>ff
to be mapped tocmd2
in the example above, i.e. that specs defined later overwrite earlier specs. However, this does not seem to be the case:<Leader>ff
is sometimes mapped tocmd1
, and sometimes tocmd2
. I.e. the merge order is not deterministic.How is the order in which plugin specs are merged determined? If I define a list of specs {{A}, {B}, {C}} with the same name (e.g.
hrsh7th/nvim-cmp
), does C overwrite the settings (keys, opts, …) of B or A? Or does the order depend on something else, e.g.dependencies
?Thanks in advance,
Christof
Beta Was this translation helpful? Give feedback.
All reactions