Adding Harpoon
This commit is contained in:
parent
f15af9b8be
commit
f1c784ca9b
2 changed files with 45 additions and 0 deletions
17
init.lua
17
init.lua
|
|
@ -42,6 +42,7 @@ P.S. You can delete this when you're done too. It's your config now :)
|
|||
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
vim.wo.relativenumber = true
|
||||
|
||||
-- Install package manager
|
||||
-- https://github.com/folke/lazy.nvim
|
||||
|
|
@ -197,6 +198,22 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Harpoon (File Navigation)
|
||||
{
|
||||
'ThePrimeagen/harpoon',
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
config = true,
|
||||
keys = {
|
||||
{ "<leader>hm", "<cmd>lua require('harpoon.mark').add_file()<cr>", desc = "Mark file with harpoon" },
|
||||
{ "<leader>hn", "<cmd>lua require('harpoon.ui').nav_next()<cr>", desc = "Go to next harpoon mark" },
|
||||
{ "<leader>hp", "<cmd>lua require('harpoon.ui').nav_prev()<cr>", desc = "Go to previous harpoon mark" },
|
||||
{ "<leader>ha", "<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>", desc = "Show harpoon marks" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
-- Highlight, edit, and navigate code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue