From 84294ac88dae013710a16628098b9ec8bd96366f Mon Sep 17 00:00:00 2001 From: venus Date: Wed, 1 Apr 2026 01:52:20 -0500 Subject: [PATCH] tested hexdump, sort of working --- init.lua | 19 +++++++++++++++++++ lazy-lock.json | 1 + 2 files changed, 20 insertions(+) diff --git a/init.lua b/init.lua index 3e7071e..07bac25 100644 --- a/init.lua +++ b/init.lua @@ -59,3 +59,22 @@ end require("config.lsp") -- render bufferline require("bufferline").setup{} + + -- defaults + require 'hex'.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_file_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_file_binary_post_read = function() + -- logic that determines if a buffer contains binary data or not + -- must return a bool + end, + } + diff --git a/lazy-lock.json b/lazy-lock.json index eaa7932..ebc53e8 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,6 +10,7 @@ "gemini-cli.nvim": { "branch": "main", "commit": "c9fd62adda823628f5131a939d9c56ef7a898600" }, "gitsigns.nvim": { "branch": "main", "commit": "0f00d07c2c3106ba6abd594ac1c17f211141b7b5" }, "guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" }, + "hex.nvim": { "branch": "master", "commit": "b46e63356a69e8d6f046c38a9708d55d17f15038" }, "hologram.nvim": { "branch": "main", "commit": "f5194f71ec1578d91b2e3119ff08e574e2eab542" }, "inc-rename.nvim": { "branch": "main", "commit": "0074b551a17338ccdcd299bd86687cc651bcb33d" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },