Added harpoon to nvim

This commit is contained in:
Luke Else 2023-03-07 20:02:32 +00:00
parent 9d55594d83
commit 5adf899dd6
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,10 @@
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)

View File

@ -18,6 +18,7 @@ return require('packer').startup(function(use)
end end
} }
use({"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}) use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
use('theprimeagen/harpoon')
end) end)