From ff71b6a2eede4747223c1e674e8097f28898245d Mon Sep 17 00:00:00 2001 From: bh Date: Fri, 5 Dec 2025 18:06:37 +0800 Subject: Added hex --- lua/config/hex.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/config/hex.lua (limited to 'lua/config/hex.lua') diff --git a/lua/config/hex.lua b/lua/config/hex.lua new file mode 100644 index 0000000..a743620 --- /dev/null +++ b/lua/config/hex.lua @@ -0,0 +1,24 @@ +return function() + + require 'HexEditor'.setup { + + -- cli command used to dump hex data + dump_cmd = 'xxd -g 1 -u', + + -- cli command used to assemble from hex data + assemble_cmd = 'xxd -r', + + -- function that runs on BufReadPre to determine if it's binary or not + is_buf_binary_pre_read = function() + -- logic that determines if a buffer contains binary data or not + -- must return a bool + end, + + -- function that runs on BufReadPost to determine if it's binary or not + is_buf_binary_post_read = function() + -- logic that determines if a buffer contains binary data or not + -- must return a bool + end, +} + +end -- cgit v1.2.3