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

plugins/alpha: Allow terminal to not set val #1261

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

traxys
Copy link
Member

@traxys traxys commented Mar 13, 2024

Fixes #1140

@traxys traxys requested a review from GaetanLepage March 13, 2024 15:25
@@ -24,7 +24,7 @@ with lib; let

val = mkOption {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
val = mkOption {
val = helpers.mkNullOrOption
(with helpers.nixvimTypes;
oneOf [
str
int
(listOf (either str (attrsOf anything)))
]
)
"Value for section."

Copy link
Member

Choose a reason for hiding this comment

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

This is a suggestion, I am not agains the mkOption.

Copy link
Member Author

Choose a reason for hiding this comment

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

I hesitated, but I feel like the mkNullOprOption would be more consistent

@traxys traxys merged commit 9b99120 into nix-community:main Mar 13, 2024
51 checks passed
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.

[BUG] Alpha terminal
2 participants