diff options
| -rw-r--r-- | init.lua | 3 | ||||
| -rw-r--r-- | lazy-lock.json | 1 | ||||
| -rw-r--r-- | lua/config/hex.lua | 24 | ||||
| -rw-r--r-- | lua/config/lazy.lua | 2 | ||||
| -rw-r--r-- | lua/config/test.c | 5 | ||||
| -rw-r--r-- | lua/plugins/init.lua | 8 |
6 files changed, 36 insertions, 7 deletions
@@ -126,7 +126,8 @@ vim.api.nvim_set_hl(0, "NormalFloat", { fg = "#8affff", bg = "#003636" }) -- Set font and size -- vim.o.guifont = "JetBrainsMono Nerd Font:h14" -vim.o.guifont = "Source Code Pro:h10.5" +-- vim.o.guifont = "Source Code Pro:h10.5" +vim.o.guifont = "JetBrainsMono Nerd Font:h10.5" -- General Neovim GUI diff --git a/lazy-lock.json b/lazy-lock.json index 1dde1d1..f61a56e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,5 @@ { + "HexEditor.nvim": { "branch": "master", "commit": "40708985ea840207c3c8a9acd6043871c2ed8862" }, "LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" }, "barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" }, "ccc.nvim": { "branch": "main", "commit": "9d1a256e006decc574789dfc7d628ca11644d4c2" }, 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; -} diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 0a6a0c4..eca8d68 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -116,11 +116,19 @@ return { -- Dashboard { "nvimdev/dashboard-nvim", event = "VimEnter", dependencies = { "nvim-tree/nvim-web-devicons" }, config = require("config.dashboard") }, + -- Hex Editing + { 'ArcaneSpecs/HexEditor.nvim', + config = function() + require("config.hex")() -- note the () if your lsp.lua returns a function + end, + }, + -- Themes "martinsione/darkplus.nvim", "folke/tokyonight.nvim", "navarasu/onedark.nvim", "EdenEast/nightfox.nvim" + } |
