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

fix: highlights groups fallback #26

Closed

Conversation

guilhermeprokisch
Copy link
Contributor

@guilhermeprokisch guilhermeprokisch commented Sep 15, 2024

@Colonial-Dev sorry for the linting madness. I don't now which config you are using.

/// # Example
/// ```rust
/// # use inkjet::theme::*;
/// # let theme = Theme::from_helix(vendored::ADWAITA_DARK).unwrap();
/// let style = theme.get_style("type.enum");
/// ```
pub fn get_style(&self, name: &str) -> Option<&Style> {
self.styles.get(name)
pub fn get_style(&self, key: &str) -> Option<&Style> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Colonial-Dev Here the main additions.

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.

1 participant