summaryrefslogtreecommitdiff
path: root/lua/config/hex.lua
blob: 4608579c96c181483f178f04e80f680d440ec428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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