add harpoon
This commit is contained in:
parent
e5d551620b
commit
03c5ac595e
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "45db5addf8d0a201e1cf247cae4cdce605ad3768" },
|
||||
"NvChad": { "branch": "v2.5", "commit": "b7a163e232524f1024a59a0a5c6ddf123530085c" },
|
||||
"base46": { "branch": "v2.5", "commit": "1b4710eaaea14a3d1bfd9ba7724152bbf18e5bc6" },
|
||||
"base46": { "branch": "v2.5", "commit": "e9d2562bd36ff6f855a43bb0852efdaece1c6992" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
"friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "899e993850084ea33d001ec229d237bc020c19ae" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "db926997af951da38e5004ec7b9fbdc480b48f5d" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "19606af7c039271d5aa96bceff101e7523af3136" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "194ec600488f7c7229668d0e80bd197f3a2b84ff" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "3ad562700d0615818bf358268ac8914f6ce2b079" },
|
||||
"nvim-tetris": { "branch": "master", "commit": "d17c99fb527ada98ffb0212ffc87ccda6fd4f7d9" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "d43ab67d0eb4317961c5e9d15fffe908519debe0" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "64cc1ef764a0b137a642d05cacdfe1126124fb35" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "ea55ef12036897fdc4476b115a395d2a34965c82" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "4e47268c6dbbc72d53c651f393a612c3e4a3f84e" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "d3a8b145f0b3db4de9a08fcbc604659f52ee4fbc" },
|
||||
|
|
|
|||
|
|
@ -15,5 +15,29 @@ map({ "n", "t" }, "<C-\\>", function()
|
|||
end, { desc = "terminal toggle floating term" })
|
||||
|
||||
-- cycleling through buffers
|
||||
map("n", "tk", "<cmd> bnext <CR>", {desc = "Next Buffer"})
|
||||
map("n", "tj", "<cmd> bprev <CR>", {desc = "Previous Buffer"})
|
||||
map("n", "tk", "<cmd> bnext <CR>", { desc = "Next Buffer" })
|
||||
map("n", "tj", "<cmd> bprev <CR>", { desc = "Previous Buffer" })
|
||||
|
||||
-- Substitute highlighted word
|
||||
map("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
||||
|
||||
-- Harpoon keymaps
|
||||
map("n", "<C-h>", function()
|
||||
require("harpoon.ui").nav_file(1)
|
||||
end, { desc = "Harpoon File 1" })
|
||||
map("n", "<C-j>", function()
|
||||
require("harpoon.ui").nav_file(2)
|
||||
end, { desc = "Harpoon File 2" })
|
||||
map("n", "<C-k>", function()
|
||||
require("harpoon.ui").nav_file(3)
|
||||
end, { desc = "Harpoon File 3" })
|
||||
map("n", "<C-l>", function()
|
||||
require("harpoon.ui").nav_file(4)
|
||||
end, { desc = "Harpoon File 4" })
|
||||
map("n", "<C-e>", function()
|
||||
require("harpoon.ui").toggle_quick_menu()
|
||||
end, { desc = "Harpoon Toggle Quick Menu" })
|
||||
map("n", "<leader>a", function()
|
||||
require("harpoon.mark").add_file()
|
||||
end, { desc = "Harpoon Add File" })
|
||||
require("harpoon").setup()
|
||||
|
|
|
|||
|
|
@ -43,4 +43,8 @@ return {
|
|||
require("cmp").setup.buffer { sources = { { name = "crates" } } }
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue