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/hex: init #2204

Merged
merged 1 commit into from
Sep 9, 2024
Merged

plugins/hex: init #2204

merged 1 commit into from
Sep 9, 2024

Conversation

GaetanLepage
Copy link
Member

Adds hex.nvim.

Fixes #2187

@GaetanLepage GaetanLepage force-pushed the hex branch 2 times, most recently from 8392a5b to 5fb75a5 Compare September 9, 2024 12:23
Copy link
Member

@MattSturgeon MattSturgeon left a 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!

Comment on lines 13 to 19
xxdPackage = lib.mkPackageOption pkgs "xxd" {
default = [
"unixtools"
"xxd"
];
nullable = true;
};
Copy link
Member

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; }

Copy link
Member

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 😁

Copy link
Member Author

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; }

Good to know, I changed it.

@GaetanLepage
Copy link
Member Author

@Mergifyio queue

This comment was marked as outdated.

@MattSturgeon

This comment was marked as outdated.

Copy link
Contributor

mergify bot commented Sep 9, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at ffa9b8f

@mergify mergify bot merged commit ffa9b8f into nix-community:main Sep 9, 2024
4 checks passed
@GaetanLepage GaetanLepage deleted the hex branch September 9, 2024 13:41
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.

[PLUGIN REQUEST] hex.nvim
2 participants