From 5a18e193bf5e8d54cae61835ef2db267345e3f5d Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 6 Jun 2025 07:31:34 +0900 Subject: [PATCH 1/6] Added luarocks and rest plugins --- lua/plugins/luarocks.lua | 6 ++++++ lua/plugins/rest.lua | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/plugins/luarocks.lua create mode 100644 lua/plugins/rest.lua diff --git a/lua/plugins/luarocks.lua b/lua/plugins/luarocks.lua new file mode 100644 index 0000000..9921a85 --- /dev/null +++ b/lua/plugins/luarocks.lua @@ -0,0 +1,6 @@ +return { + "vhyrro/luarocks.nvim", + opts = { + rocks = { "lua-curl", "nvim-nio", "mimetypes", "xml2lua" } + } +} diff --git a/lua/plugins/rest.lua b/lua/plugins/rest.lua new file mode 100644 index 0000000..1f11684 --- /dev/null +++ b/lua/plugins/rest.lua @@ -0,0 +1,11 @@ +return { + "rest-nvim/rest.nvim", + dependencies = { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + table.insert(opts.ensure_installed, "http") + end, + "j-hui/fidget.nvim" + } +} From b6ae44840777edb57879790a4e9f8e7c824396c0 Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 6 Jun 2025 07:31:54 +0900 Subject: [PATCH 2/6] Updated line number indicator --- options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.lua b/options.lua index 18cda29..b5cc8ef 100644 --- a/options.lua +++ b/options.lua @@ -8,7 +8,7 @@ vim.opt.cursorline = true vim.opt.nu = true vim.opt.relativenumber = true -vim.o.statuscolumn = "%l %=%{v:relnum?v:relnum:v:lnum} " +vim.o.statuscolumn = "%l %=%{v:relnum?v:lnum:v:lnum} " vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 From 32396bf2078c4afb3b7272b06cd39e0029d3f798 Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 6 Jun 2025 07:32:18 +0900 Subject: [PATCH 3/6] Updated plugins versions --- lazy-lock.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lazy-lock.json b/lazy-lock.json index a593d14..47ec519 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,10 +10,12 @@ "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "distant.nvim": { "branch": "v0.3", "commit": "67d6b066e8490725718b79f643966f4eafc7da3c" }, "dressing.nvim": { "branch": "master", "commit": "fc78a3ca96f4db9f8893bb7e2fd9823e0780451b" }, + "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" }, "gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" }, "lsp_signature.nvim": { "branch": "master", "commit": "fc38521ea4d9ec8dbd4c2819ba8126cea743943b" }, "lspkind-nvim": { "branch": "master", "commit": "a700f1436d4a938b1a1a93c9962dc796afbaef4d" }, + "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "messages.nvim": { "branch": "main", "commit": "24dbb56829d1ed2d8d878e9f5547478441838567" }, @@ -33,6 +35,7 @@ "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" }, + "rest.nvim": { "branch": "main", "commit": "2ded89dbda1fd3c1430685ffadf2df8beb28336d" }, "tailwind-tools": { "branch": "master", "commit": "89e560705ecd49607c63c277935c5264bb770d57" }, "tailwindcss-colors.nvim": { "branch": "main", "commit": "ccb5be2f84673c1a0ef90a0c0a76733e85e5265b" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "3b8a1e17187cfeedb31decbd625da62398a8ff34" }, @@ -48,4 +51,4 @@ "vim-screeps": { "branch": "master", "commit": "1e796767f8096bebc417acde52960bed583483ae" }, "vim-vsnip": { "branch": "master", "commit": "02a8e79295c9733434aab4e0e2b8c4b7cea9f3a9" }, "which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" } -} \ No newline at end of file +} From a91bb01b59f0411fe83528bd3fd039fb5313831a Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 13 Jun 2025 11:38:03 +0900 Subject: [PATCH 4/6] Added Hex plugin --- lua/plugins/hex.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lua/plugins/hex.lua diff --git a/lua/plugins/hex.lua b/lua/plugins/hex.lua new file mode 100644 index 0000000..3171844 --- /dev/null +++ b/lua/plugins/hex.lua @@ -0,0 +1,6 @@ +return { + "RaafatTurki/hex.nvim", + config = function() + require("hex").setup() + end +} From fe49f07ad3625a7c1f28d5ff354b30fb8e566559 Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 13 Jun 2025 11:38:16 +0900 Subject: [PATCH 5/6] Added keymap for opening explorer in directory of current buffer --- remap.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remap.lua b/remap.lua index ef63955..768dc9b 100644 --- a/remap.lua +++ b/remap.lua @@ -6,6 +6,13 @@ vim.keymap.set("x", "p", "\"_dP") if package.config:sub(1,1) == "\\" then vim.keymap.set("n", "oe", ":!explorer .", { desc = "[O]pen [E]xplorer in current working directory" }) vim.keymap.set("n", "ot", ":!wt -w 0 nt -d .", { desc = "[O]pen Windows [T]erminal in current working directory" }) + vim.keymap.set("n", "oce", function () + local path = vim.api.nvim_buf_get_name(0) + local dir = path:sub(1, path:find('\\[^\\]*$')) + -- vim.cmd(":!echo " .. "(path:sub(1, path:find('\\[^\\]*$')))" .. "") + -- print("Check "..dir) + os.execute("explorer " .. dir) + end, { desc = "[O]pen [C]urrent buffer [Explorer]"}) end -- Telescope From 0a0eee06c2d2d8f515eca119aca5340f9ba8f973 Mon Sep 17 00:00:00 2001 From: David Work Date: Fri, 13 Jun 2025 11:40:51 +0900 Subject: [PATCH 6/6] Added Hex plugin cont --- lazy-lock.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lazy-lock.json b/lazy-lock.json index 47ec519..b7b3ab5 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -13,6 +13,7 @@ "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" }, "gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" }, + "hex.nvim": { "branch": "master", "commit": "fcff75fcf43b5a6c5b471eed65b3a06c412d6020" }, "lsp_signature.nvim": { "branch": "master", "commit": "fc38521ea4d9ec8dbd4c2819ba8126cea743943b" }, "lspkind-nvim": { "branch": "master", "commit": "a700f1436d4a938b1a1a93c9962dc796afbaef4d" }, "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" },