Add extra plugins
This commit is contained in:
parent
ca75729c7a
commit
2d4fe69a06
10 changed files with 201 additions and 0 deletions
15
lua/custom/plugins/harpoon.lua
Normal file
15
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
'thePrimeagen/harpoon',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function ()
|
||||
local mark = require('harpoon.mark')
|
||||
vim.keymap.set("n", "<leader>ha", mark.add_file)
|
||||
|
||||
local ui = require('harpoon.ui')
|
||||
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)
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue