fixing harpoon binds

main
spinach 2 years ago
parent ae26e53d09
commit 1b54cef383

@ -1,5 +1,5 @@
require('keymap')
require('plugins')
require('keymap')
require('autobuf')
-- prevent cursor override

@ -38,15 +38,13 @@ vim.keymap.set('n', '<leader>pg', '"+p')
vim.keymap.set("n", "<leader>d", ":lua require('nvim-tree.api').tree.toggle_hidden_filter()<CR>")
-- harpoon bindings
local harpoon = require('harpoon.ui')
vim.keymap.set("n", "<leader>hh", ":Telescope harpoon marks")
vim.keymap.set("n", "<leader>ha", harpoon.add_file, {})
vim.keymap.set("n", "<leader>hn", harpoon.nav_next, {})
vim.keymap.set("n", "<leader>hp", harpoon.nav_prev, {})
vim.keymap.set("n", "<leader>ha", ":lua require(harpoon.ui).add_file()"
vim.keymap.set("n", "<leader>hn", ":lua require(harpoon.ui).nav_next()"
vim.keymap.set("n", "<leader>hp", ":lua require(harpoon.ui).nav_prev()"
-- jumping to specific files
vim.keymap.set("n", "<leader>h1", harpoon.nav_file, {1})
vim.keymap.set("n", "<leader>h2", harpoon.nav_file, {2})
vim.keymap.set("n", "<leader>h3", harpoon.nav_file, {3})
vim.keymap.set("n", "<leader>h4", harpoon.nav_file, {4})
vim.keymap.set("n", "<leader>h5", harpoon.nav_file, {5})
vim.keymap.set("n", "<leader>h1", ":lua require(harpoon.ui).nav_file(1)"
vim.keymap.set("n", "<leader>h2", ":lua require(harpoon.ui).nav_file(2)"
vim.keymap.set("n", "<leader>h3", ":lua require(harpoon.ui).nav_file(3)"
vim.keymap.set("n", "<leader>h4", ":lua require(harpoon.ui).nav_file(4)"
vim.keymap.set("n", "<leader>h5", ":lua require(harpoon.ui).nav_file(5)"

@ -49,4 +49,4 @@ require('telescope').setup({
},
})
require.('telescope).load_extension('harpoon')
require.('telescope').load_extension('harpoon')

Loading…
Cancel
Save