diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..960f340f Binary files /dev/null and b/.DS_Store differ diff --git a/lua/.DS_Store b/lua/.DS_Store new file mode 100644 index 00000000..5ffd638f Binary files /dev/null and b/lua/.DS_Store differ diff --git a/lua/custom/.DS_Store b/lua/custom/.DS_Store new file mode 100644 index 00000000..a7b0016a Binary files /dev/null and b/lua/custom/.DS_Store differ 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, +}