Skip to content

plugins/hex: init#2204

Merged
mergify[bot] merged 1 commit intonix-community:mainfrom
GaetanLepage:hex
Sep 9, 2024
Merged

plugins/hex: init#2204
mergify[bot] merged 1 commit intonix-community:mainfrom
GaetanLepage:hex

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

@mergify

This comment was marked as outdated.

@MattSturgeon

This comment was marked as outdated.

@mergify
Copy link
Contributor

mergify bot commented Sep 9, 2024

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at ffa9b8f

@mergify mergify bot merged commit ffa9b8f into nix-community:main Sep 9, 2024
@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