mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): refactored config structure
This commit is contained in:
parent
76a64639a2
commit
7bbf5ee03b
29 changed files with 23 additions and 81 deletions
|
|
@ -1,14 +0,0 @@
|
|||
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" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue