-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
highlight: init #571
Conversation
modules/neovim/init/highlight.nix
Outdated
mkOption { | ||
type = nullOr bool; | ||
default = null; | ||
description = ''Whether to enable ${name}''; |
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.
description = ''Whether to enable ${name}''; | |
description = "Whether to enable ${name}"; |
Also move example
between default
and description
please.
modules/neovim/init/highlight.nix
Outdated
) | ||
cfg; | ||
in | ||
entryAnywhere (concatStringsSep "\n" highlights); |
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.
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.
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}"; | ||
}; |
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.
Not a blocker, but these may be better suited for the extended lib.
If you can fix the conflicts, I can merge this. |
Thank you :) |
✅ Preview has been deleted successfully! |
Creates options for configuring highlight groups, mirroring the options available in
nvim_set_hl
.