mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 12:15:26 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts mkNullOrLuaFn;
|
|
in
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "hex";
|
|
packPathName = "hex.nvim";
|
|
package = "hex-nvim";
|
|
description = "Hex editor for Neovim.";
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
imports = [
|
|
# TODO: added 2025-04-07, remove after 25.05
|
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
plugin = "hex";
|
|
packageName = "xxd";
|
|
})
|
|
];
|
|
|
|
extraConfig = {
|
|
dependencies.xxd.enable = lib.mkDefault true;
|
|
};
|
|
|
|
settingsOptions = {
|
|
dump_cmd = defaultNullOpts.mkStr "xxd -g 1 -u" ''
|
|
cli command used to dump hex data.
|
|
'';
|
|
|
|
assemble_cmd = defaultNullOpts.mkStr "xxd -r" ''
|
|
cli command used to dump hex data.
|
|
'';
|
|
|
|
is_buf_binary_pre_read = mkNullOrLuaFn ''
|
|
Function that runs on `BufReadPre` to determine if it's binary or not.
|
|
It should return a boolean value.
|
|
'';
|
|
|
|
is_buf_binary_post_read = mkNullOrLuaFn ''
|
|
Function that runs on `BufReadPost` to determine if it's binary or not.
|
|
It should return a boolean value.
|
|
'';
|
|
};
|
|
|
|
settingsExample = {
|
|
dump_cmd = "xxd -g 1 -u";
|
|
assemble_cmd = "xxd -r";
|
|
};
|
|
}
|