refactor(keymaps): improve harpoon keymaps for selecting files
This commit is contained in:
2 files changed
+7
-13
No files matched your search
@@ -4,7 +4,7 @@ return {
|
||||
event = { 'BufReadPost', 'BufNewFile' },
|
||||
keys = {
|
||||
{
|
||||
'<leader>L',
|
||||
'<leader>cL',
|
||||
mode = { 'n' },
|
||||
function()
|
||||
require('lint').try_lint()
|
||||
|
||||
+6
-12
@@ -15,18 +15,12 @@ return {
|
||||
vim.keymap.set('n', '<leader>hl', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end, { desc = 'Harpoon quick menu' })
|
||||
vim.keymap.set('n', '<A-1>', function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
vim.keymap.set('n', '<A-2>', function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<A-3>', function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<A-4>', function()
|
||||
harpoon:list():select(4)
|
||||
end)
|
||||
|
||||
for i = 1, 9 do
|
||||
vim.keymap.set('n', '<A-' .. i .. '>', function()
|
||||
harpoon:list():select(i)
|
||||
end, { desc = 'Harpoon to file ' .. i })
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user