-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Add public API function to get Nord colors #224
Conversation
Hi @jandamm 👋, thanks for your contribution 👍 |
@arcticicestudio Any update? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience, the amount of tasks for Nord requires a lot of time.
I've reviewed and tested the function and it works great. Only left one review comment to ensure it is compatible with all colors.
Also please move the function to the bottom of the file and add the following header before it:
"+------------+
"+ Public API +
"+------------+
"+--- Functions ---+
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Sure thing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍🏼
Implemented the `NordPalette` pubic API function that returns all Nord colors as dictionary. This allows to use the colors in other Vim scripts without the need to copy & paste the colors from the documentations or the Nord Vim theme sources. Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com> Co-authored-by: Sven Greb <development@svengreb.de> Closes nordthemeGH-224
This way a user who wants to use the colors of the Nord theme without having to copy hex-codes from the website.
This way adding/modifying highlight groups could be done like this: