Fix typo in vim.set to vim.keymap.set
This commit is contained in:
parent
25b6aeff3a
commit
6b5dea1f38
16
init.lua
16
init.lua
|
|
@ -1032,30 +1032,30 @@ local harpoon = require 'harpoon'
|
||||||
harpoon:setup()
|
harpoon:setup()
|
||||||
|
|
||||||
-- Harpoon Remaps
|
-- Harpoon Remaps
|
||||||
vim.set('n', '<leader>ha', function()
|
vim.keymap.set('n', '<leader>ha', function()
|
||||||
harpoon:list():add()
|
harpoon:list():add()
|
||||||
end)
|
end)
|
||||||
vim.set('n', '<leader>hh', function()
|
vim.keymap.set('n', '<leader>hh', function()
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.set('n', '<M-a>', function()
|
vim.keymap.set('n', '<M-a>', function()
|
||||||
harpoon:list():select(1)
|
harpoon:list():select(1)
|
||||||
end)
|
end)
|
||||||
vim.set('n', '<M-s>', function()
|
vim.keymap.set('n', '<M-s>', function()
|
||||||
harpoon:list():select(2)
|
harpoon:list():select(2)
|
||||||
end)
|
end)
|
||||||
vim.set('n', '<M-d>', function()
|
vim.keymap.set('n', '<M-d>', function()
|
||||||
harpoon:list():select(3)
|
harpoon:list():select(3)
|
||||||
end)
|
end)
|
||||||
vim.set('n', '<M-f>', function()
|
vim.keymap.set('n', '<M-f>', function()
|
||||||
harpoon:list():select(4)
|
harpoon:list():select(4)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.set('n', '<M-r>', function()
|
vim.keymap.set('n', '<M-r>', function()
|
||||||
harpoon:list():prev()
|
harpoon:list():prev()
|
||||||
end)
|
end)
|
||||||
vim.set('n', '<M-t>', function()
|
vim.keymap.set('n', '<M-t>', function()
|
||||||
harpoon:list():next()
|
harpoon:list():next()
|
||||||
end)
|
end)
|
||||||
-- END CUSTOM CODE
|
-- END CUSTOM CODE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue