Browse Source

Update harpoon keybinds to jump to marks

master
parent
commit
3f2a0aa88f
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      .config/nvim/lua/config/harpoon.lua

+ 3
- 5
.config/nvim/lua/config/harpoon.lua View File

@ -5,11 +5,9 @@ vim.keymap.set('n', '<leader>a', mark.add_file)
vim.keymap.set('n', '<leader>th', mark.toggle_file) vim.keymap.set('n', '<leader>th', mark.toggle_file)
vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu) 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)
for var=1,9 do
vim.keymap.set('n', '<leader>' .. var, function () ui.nav_file(var) end)
end
vim.keymap.set('n', '<C-,>', function () ui.nav_prev() end) vim.keymap.set('n', '<C-,>', function () ui.nav_prev() end)
vim.keymap.set('n', '<C-.>', function () ui.nav_next() end) vim.keymap.set('n', '<C-.>', function () ui.nav_next() end)

Loading…
Cancel
Save