From e8e3ee376949aff25b6cfd1d6d93a33654b5b7f0 Mon Sep 17 00:00:00 2001 From: Arnold Lei Date: Sun, 5 Oct 2025 21:43:14 -0600 Subject: [PATCH] moved some files --- .DS_Store | Bin 0 -> 6148 bytes lua/.DS_Store | Bin 0 -> 6148 bytes lua/custom/.DS_Store | Bin 0 -> 6148 bytes lua/custom/plugins/comment.lua | 7 +++++ lua/custom/plugins/curl.lua | 31 ++++++++++++++++++++++ lua/custom/plugins/harpoon.lua | 46 +++++++++++++++++++++++++++++++++ lua/custom/plugins/oil.lua | 11 ++++++++ 7 files changed, 95 insertions(+) create mode 100644 .DS_Store create mode 100644 lua/.DS_Store create mode 100644 lua/custom/.DS_Store create mode 100644 lua/custom/plugins/comment.lua create mode 100644 lua/custom/plugins/curl.lua create mode 100644 lua/custom/plugins/harpoon.lua create mode 100644 lua/custom/plugins/oil.lua diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..960f340fc29f5045dd8d357f27060dc4cd24360d GIT binary patch literal 6148 zcmeHKv2DXZ3?yS02GY1p`730Dhv7`%1(H~$02P6IRhcWJ<&Go*8-j`yZj2*9-iy!s zhprGsGxNh`cs1Lb*$z&$Z-%9DpT4lC$`GAroX5{;8nLv^qIe}i?#2e2>^yv3^GCbb z$8~Du0HvjX6p#W^Knh5Ke<{F54ck2@DoOzoD-979yjBhy4h<&@wgrN7UkwWQBev=fm;P? zNZ+&nzrk1L|67utq<|E7C#^56 zwmik{Er7D#b$7rDz>;o=FB|4&`{pyd$cSO_GkSFB@q*WGoMoR6821`a_`o{`a*zCN z|2zymkHr88#e>ymL3qV{j?8dqG62xi&VoRI?8KIS+5`$W@#VA2%yk=fYoC1T6;y3f0yt!nD zQv7zttEZ#1K#fvB3Y;o%8OxQ`|9kom{r@RRD=8oa{*?k{v3c06`J}9^v&UJjt@KB_ uPFdI4K|n{=NeKeQ0#YUN|Pkr-MVZ0K^%?VVp-V zL2Mo%_QEld5t=2Hm{hA4!;;Q;tGr$~CMF$L&4<;^Rvn7P?L5ClI;as{jB1 literal 0 HcmV?d00001 diff --git a/lua/custom/plugins/comment.lua b/lua/custom/plugins/comment.lua new file mode 100644 index 00000000..e6b597db --- /dev/null +++ b/lua/custom/plugins/comment.lua @@ -0,0 +1,7 @@ +return { + 'numToStr/Comment.nvim', + opts = { + -- add any options here + }, + lazy = false, +} diff --git a/lua/custom/plugins/curl.lua b/lua/custom/plugins/curl.lua new file mode 100644 index 00000000..293d8265 --- /dev/null +++ b/lua/custom/plugins/curl.lua @@ -0,0 +1,31 @@ +return { + "oysandvik94/curl.nvim", + cmd = { "CurlOpen" }, + dependencies = { + "nvim-lua/plenary.nvim", + }, + config = true, + keys = { + { "cc", "lua require('curl').open_curl_tab()", desc = "Open a curl tab scoped to the current working directory" }, + { "csc", "lua require('curl').create_scoped_collection()", desc = "Create or open a collection with a name from user input" }, + { "cgc", "lua require('curl').create_global_collection()", desc = "Create or open a global collection with a name from user input" }, + }, + on_attach = function (bufnr) + -- These commands will prompt you for a name for your collection + vim.keymap.set("n", "csc", function() + curl.create_scoped_collection() + end, { desc = "Create or open a collection with a name from user input" }) + + vim.keymap.set("n", "cgc", function() + curl.create_global_collection() + end, { desc = "Create or open a global collection with a name from user input" }) + + vim.keymap.set("n", "fsc", function() + curl.pick_scoped_collection() + end, { desc = "Choose a scoped collection and open it" }) + + vim.keymap.set("n", "fgc", function() + curl.pick_global_collection() + end, { desc = "Choose a global collection and open it" }) + end +} diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua new file mode 100644 index 00000000..a08b2c02 --- /dev/null +++ b/lua/custom/plugins/harpoon.lua @@ -0,0 +1,46 @@ +return { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + lazy = false, + dependencies = { + 'nvim-lua/plenary.nvim', + }, + config = function() + local harpoon = require 'harpoon' + harpoon:setup() + + -- Keymaps + vim.keymap.set('n', 'a', function() + harpoon:list():add() + end, { desc = 'Harpoon: Mark file' }) + + vim.keymap.set('n', '', function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end, { desc = 'Harpoon: Toggle quick menu' }) + + vim.keymap.set('n', 'h1', function() + harpoon:list():select(1) + end, { desc = 'Harpoon: Go to file 1' }) + + vim.keymap.set('n', 'h2', function() + harpoon:list():select(2) + end, { desc = 'Harpoon: Go to file 2' }) + + vim.keymap.set('n', 'h3', function() + harpoon:list():select(3) + end, { desc = 'Harpoon: Go to file 3' }) + + vim.keymap.set('n', 'h4', function() + harpoon:list():select(4) + end, { desc = 'Harpoon: Go to file 4' }) + + -- Navigate to previous & next buffers in the list + vim.keymap.set('n', '', function() + harpoon:list():prev() + end, { desc = 'Harpoon: Previous buffer' }) + + vim.keymap.set('n', '', function() + harpoon:list():next() + end, { desc = 'Harpoon: Next buffer' }) + end, +} diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua new file mode 100644 index 00000000..8f5d6ff5 --- /dev/null +++ b/lua/custom/plugins/oil.lua @@ -0,0 +1,11 @@ +return { + 'stevearc/oil.nvim', + ---@module 'oil' + ---@type oil.SetupOpts + opts = {}, + -- Optional dependencies + dependencies = { { "nvim-mini/mini.icons", opts = {} } }, + -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons + -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. + lazy = false, +}