Skip to content

Commit

Permalink
feat: update harpoon keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
BBboy01 committed Apr 13, 2024
1 parent c48aec2 commit c6672c5
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions lua/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,35 +252,7 @@ return {
:find()
end

return {
{
'<A-1>',
function()
harpoon:list():select(1)
end,
desc = 'Harpoon buffer 1',
},
{
'<A-2>',
function()
harpoon:list():select(2)
end,
desc = 'Harpoon buffer 2',
},
{
'<A-3>',
function()
harpoon:list():select(3)
end,
desc = 'Harpoon buffer 3',
},
{
'<A-4>',
function()
harpoon:list():select(4)
end,
desc = 'Harpoon buffer 4',
},
local keys = {
{
'<A-n>',
function()
Expand All @@ -298,7 +270,7 @@ return {
{
'<A-a>',
function()
harpoon:list():append()
harpoon:list():add()
end,
desc = 'Harpoon add current buffer',
},
Expand All @@ -317,6 +289,17 @@ return {
desc = 'Harpoon list telescope',
},
}

for i = 1, 5 do
table.insert(keys, {
'<leader>' .. i,
function()
require('harpoon'):list():select(i)
end,
desc = 'Harpoon to File ' .. i,
})
end
return keys
end,
},

Expand Down

0 comments on commit c6672c5

Please sign in to comment.