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

Allow colour overrides #10

Closed
Chaitanyabsprip opened this issue Aug 14, 2021 · 4 comments
Closed

Allow colour overrides #10

Chaitanyabsprip opened this issue Aug 14, 2021 · 4 comments

Comments

@Chaitanyabsprip
Copy link

Please add a lua api to override custom colors. I know we can always do hi! ... but it would be neat if I could do it using api native to the plugin.

@mvllow
Copy link
Member

mvllow commented Aug 14, 2021

Do you have an example of another theme doing this? Seems a little out of scope for a theme but willing to reconsider

@Chaitanyabsprip
Copy link
Author

vim.g.tokyonight_colors = {border = "#7aa2f7", bg = "#262C3A"}

tokyonight allows overriding colors this way. Moreover simplifies it so that the user don't have to see what highlight group they have to use, its just nicely wrapped behind generic, self explanatory terms like border, bg, etc.

@mvllow
Copy link
Member

mvllow commented Aug 14, 2021

Ah that makes sense, appreciate the example. I'll look into adding this soon 😌

@mvllow mvllow changed the title Custom Color Allow colour overrides Aug 19, 2021
@mvllow mvllow closed this as completed in 5beedc0 Oct 12, 2021
@mvllow
Copy link
Member

mvllow commented Oct 12, 2021

This is now supported for a few groups. Feel free to PR more 😌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants