-
-
Notifications
You must be signed in to change notification settings - Fork 295
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/hex: init #2204
plugins/hex: init #2204
Conversation
8392a5b
to
5fb75a5
Compare
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.
I haven't checked the upstream plugin options, but the diff looks good and CI is green. Thanks!
plugins/by-name/hex/default.nix
Outdated
xxdPackage = lib.mkPackageOption pkgs "xxd" { | ||
default = [ | ||
"unixtools" | ||
"xxd" | ||
]; | ||
nullable = true; | ||
}; |
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.
Up to you, but when the name
is the same as the last element of the default
, you can also use mkPackageOption
like this:
lib.mkPackageOption pkgs [
"unixtools"
"xxd"
] { nullable = true; }
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.
Also note: you'll be pleased to hear nixfmt will start formatting this as the following soon:
lib.mkPackageOption pkgs [ "unixtools" "xxd" ] { nullable = true; }
As short lists will be allowed to stay contracted when used as function arguments.
Just need NixOS/nixfmt#233 to make it to our nixpkgs lock 😁
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.
Up to you, but when the
name
is the same as the last element of thedefault
, you can also usemkPackageOption
like this:lib.mkPackageOption pkgs [ "unixtools" "xxd" ] { nullable = true; }
Good to know, I changed it.
@Mergifyio queue |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at ffa9b8f |
Adds hex.nvim.
Fixes #2187