Added harpoon to nvim
This commit is contained in:
parent
9d55594d83
commit
5adf899dd6
10
nvim/after/plugin/harpoon.lua
Normal file
10
nvim/after/plugin/harpoon.lua
Normal 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)
|
@ -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)
|
Loading…
Reference in New Issue
Block a user