summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2025-12-05 18:06:37 +0800
committerbh <qn+git@excalibur.computer>2025-12-05 18:06:37 +0800
commitff71b6a2eede4747223c1e674e8097f28898245d (patch)
treef4dd53d40d7f5d295c14e006937b5f03d14d1b04 /lua/config
parent6a0b3e2a9e68bf5942bd9dc81ba8a7dfeea446c3 (diff)
Added hex
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/hex.lua24
-rw-r--r--lua/config/lazy.lua2
-rw-r--r--lua/config/test.c5
3 files changed, 25 insertions, 6 deletions
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
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index f5ee74c..0b93d4e 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -31,5 +31,5 @@ require("lazy").setup({
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
- checker = { enabled = true },
+ checker = { enabled = false },
})
diff --git a/lua/config/test.c b/lua/config/test.c
deleted file mode 100644
index 514ad15..0000000
--- a/lua/config/test.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <stdio.h>
-
-int add(){
- return 5 + 5;
-}