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

highlight: init #571

Merged
merged 6 commits into from
Jan 23, 2025
Merged

highlight: init #571

merged 6 commits into from
Jan 23, 2025

Conversation

LilleAila
Copy link
Contributor

Creates options for configuring highlight groups, mirroring the options available in nvim_set_hl.

@LilleAila LilleAila requested a review from NotAShelf as a code owner January 19, 2025 17:04
github-actions bot pushed a commit that referenced this pull request Jan 19, 2025
Copy link

github-actions bot commented Jan 19, 2025

🚀 Live preview deployed from 8df64ac

View it here:

Debug Information

Triggered by: NotAShelf

HEAD at: highlight-options

Reruns: 112

mkOption {
type = nullOr bool;
default = null;
description = ''Whether to enable ${name}'';
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
description = ''Whether to enable ${name}'';
description = "Whether to enable ${name}";

Also move example between default and description please.

)
cfg;
in
entryAnywhere (concatStringsSep "\n" highlights);
Copy link
Owner

Choose a reason for hiding this comment

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

entryAnywhere should be fine, but we might benefit more from placing this before plugin setup since some of them might actually use the highlights set in this module.

@LilleAila LilleAila requested a review from NotAShelf January 19, 2025 18:39
Comment on lines +14 to +30
mkColorOption = target:
mkOption {
type = nullOr hexColor;
default = null;
example = "#ebdbb2";
description = ''
The ${target} color to use. Written as color name or hex "#RRGGBB".
'';
};

mkBoolOption = name:
mkOption {
type = nullOr bool;
default = null;
example = false;
description = "Whether to enable ${name}";
};
Copy link
Owner

Choose a reason for hiding this comment

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

Not a blocker, but these may be better suited for the extended lib.

github-actions bot pushed a commit that referenced this pull request Jan 20, 2025
@LilleAila LilleAila requested a review from NotAShelf January 23, 2025 07:39
NotAShelf
NotAShelf previously approved these changes Jan 23, 2025
@NotAShelf
Copy link
Owner

If you can fix the conflicts, I can merge this.

github-actions bot pushed a commit that referenced this pull request Jan 23, 2025
@LilleAila LilleAila requested a review from NotAShelf January 23, 2025 15:28
@NotAShelf
Copy link
Owner

Thank you :)

@NotAShelf NotAShelf merged commit 8df64ac into NotAShelf:main Jan 23, 2025
13 checks passed
Copy link

✅ Preview has been deleted successfully!

github-actions bot pushed a commit that referenced this pull request Jan 23, 2025
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