ref(nvim): refactored config structure

This commit is contained in:
Léana 江 2023-04-04 00:50:57 +02:00
parent 76a64639a2
commit 7bbf5ee03b
29 changed files with 23 additions and 81 deletions

View file

@ -0,0 +1,14 @@
require("harpoon").setup {}
local ui = require("harpoon.ui")
local mark = require("harpoon.mark")
-- add and view
vim.keymap.set({ 'n', 'i' }, '<A-a>', function() mark.add_file() end, { desc = "add file to harpoon" })
vim.keymap.set({ 'n', 'i' }, '<A-e>', function() ui.toggle_quick_menu() end, { desc = "show harpoon menu" })
-- switch it up!
vim.keymap.set({ 'n', 'i' }, '<A-h>', function() ui.nav_file(1) end, { desc = "harpoon 1 (the magic finger)" })
vim.keymap.set({ 'n', 'i' }, '<A-t>', function() ui.nav_file(2) end, { desc = "harpoon 2" })
vim.keymap.set({ 'n', 'i' }, '<A-n>', function() ui.nav_file(3) end, { desc = "harpoon 3" })
vim.keymap.set({ 'n', 'i' }, '<A-s>', function() ui.nav_file(4) end, { desc = "harpoon 4" })