Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(README): specify name field in lazy.nvim installation #365

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

S1M0N38
Copy link
Contributor

@S1M0N38 S1M0N38 commented Sep 23, 2024

If you try to install this colorscheme using lazy.nvim in the following way

{
  "projekt0n/github-nvim-theme",
  opts = {
    options = {
      transparent = true,
    },
  }
}

i.e., specifying some options in the opts field instead of using config, lazy cannot find the plugin.

To automatically call setup with the values of opts, it has to infer the name of the plugin from projekt0n/github-nvim-theme, resulting in github-nvim-theme. However, the plugin must be required with require('github-theme').

You can manually specify the name of the plugin using the name field:

{
  "projekt0n/github-nvim-theme",
  name = "github-theme",
  opts = {
    options = {
      transparent = true,
    },
  }
}

@ful1e5 ful1e5 merged commit 0e4636f into projekt0n:main Sep 24, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants