jones-nvim-config/lua/config/harpoon.lua

9 lines
501 B
Lua
Raw Normal View History

2024-04-07 21:27:43 +00:00
local api = vim.api
local harpoon = require("harpoon")
harpoon.setup({})
api.nvim_create_user_command('HarpoonAdd', function() harpoon:list():add() end, { bang = true })
api.nvim_create_user_command('HarpoonUI', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { bang = true })
api.nvim_create_user_command('HarpoonTogglePrev', function() harpoon:list():prev() end, { bang = true })
api.nvim_create_user_command('HarpoonToggleNext', function() harpoon:list():next() end, { bang = true })