Skip to content

Question on using the requires and config keywords #998

Answered by EdenEast
vendion asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is that config is expecting a function but is given what ever is returned from the lua modules that you are requiring. This is simply fixed by wrapping the require call in a function.

use {
  'goolord/alpha-nvim',
  requires = {{ "kyazdani42/nvim-web-devicons" }},
  config = function() require('vendion.config.alpha-nvim') end,
}

If you are interested in where the config key is handled you can find that here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vendion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants