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

Setting theme and its settings via vim.g and vim.cmd #10

Closed
ysomad opened this issue Oct 25, 2022 · 2 comments · Fixed by #12
Closed

Setting theme and its settings via vim.g and vim.cmd #10

ysomad opened this issue Oct 25, 2022 · 2 comments · Fixed by #12

Comments

@ysomad
Copy link
Contributor

ysomad commented Oct 25, 2022

Now it's required to use setup function as config in packer but it would be great to be able setting up the theme and its settings via vim.g.

What I mean by "use setup function as config"

use {
      'aktersnurra/no-clown-fiesta.nvim',
      config = function()
        require("no-clown-fiesta").setup({})
      end
}

Would be great to be able:

vim.cmd("colorscheme no-clown-fiesta") -- set theme
vim.g.noclownfiesta_type = "bold,italic" -- and other settings in similar way

Why? If someone wants to change theme, they need to remove dependency from packer and re-compile.

@aktersnurra
Copy link
Owner

Sounds good, I'll look into it.

@aktersnurra
Copy link
Owner

I updated how the colorscheme is enabled. Take a look at the README to see how options are set.

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 a pull request may close this issue.

2 participants