adding harpoon and live grep args

adding:
- harpoon
- live grep args
- cpp debug
This commit is contained in:
Simon Ayoub 2024-11-06 22:09:52 +11:00
parent 2f9238d2d3
commit 4f7d45ed42
4 changed files with 72 additions and 21 deletions

View file

@ -0,0 +1,8 @@
return {
{
'rmagatti/goto-preview',
event = 'BufEnter',
config = true, -- necessary as per https://github.com/rmagatti/goto-preview/issues/88
default_mappings = true,
},
}

View file

@ -0,0 +1,23 @@
return {
"ThePrimeagen/harpoon",
config = function()
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>a", mark.add_file, { desc = "Harpoon: Mark File" })
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu, { desc = "Toggle Harpoon Menu" })
vim.keymap.set("n", "<C-t>", function()
ui.nav_file(1)
end, { desc = "Harpoon File 1" })
vim.keymap.set("n", "<C-s>", function()
ui.nav_file(2)
end, { desc = "Harpoon File 2" })
vim.keymap.set("n", "<C-b>", function()
ui.nav_file(3)
end, { desc = "Harpoon File 3" })
vim.keymap.set("n", "<C-g>", function()
ui.nav_file(4)
end, { desc = "Harpoon File 4" })
end,
}

View file

@ -63,7 +63,8 @@ return {
-- online, please don't ask me how to install them :)
ensure_installed = {
-- Update this to ensure that you have the debuggers for the langs you want
'delve',
-- 'delve',
'codelldb',
},
}