Skip to content
Discussion options

You must be logged in to vote

For your personal config, when there is only one spec for monokai-pro, they both are equivalent.
When there are multiple specs for the plugin, one overriding the other, I think that option two is preferred.
An example , the overriding spec:

return {
    "tanvirtin/monokai.nvim",
    opts = function(_, opts)
      local monokai = require("monokai")
      opts.palette = monokai.pro.someotherflavour
    end
}

Another argument in favor of option two: You don't have to provide monokai.setup(opts)

See also: importing specs ....

opts, dependencies, cmd, event, ft and keys are always merged with the parent spec. Any other property will override the property from the parent spec.

It's a crucial…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Susensio
Comment options

@abeldekat
Comment options

@Susensio
Comment options

@abeldekat
Comment options

Answer selected by Susensio
Comment options

You must be logged in to vote
6 replies
@abeldekat
Comment options

@xfzv
Comment options

@abeldekat
Comment options

@xfzv
Comment options

@abeldekat
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
4 participants