1
0

Better harpoon keybindings

This commit is contained in:
Nigel Barink 2024-10-11 21:14:07 +02:00 committed by Nigel Barink
parent 9db9a8f594
commit 6b8298f00d
Signed by: Nigel
GPG Key ID: 6893A31C2D84A9D2

View File

@ -9,12 +9,8 @@ return {
local harpoon = require("harpoon")
harpoon.setup()
local conf = require("telescope.config").values
local function toggle_telescope(harpoon_files)
local file_paths = {}
for _, item in ipairs(harpoon_files.items) do
table.insert(file_paths, item.value)
end
vim.keymap.set("n", "ha", function() harpoon:list():add() end)
vim.keymap.set("n", "hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
require("telescope.pickers").new({}, {
result = file_paths,
@ -32,8 +28,8 @@ return {
vim.keymap.set("n", "C-4", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<C-Q>", function() harpoon:list():prev() end)
vim.keymap.set("n", "<C-E>", function() harpoon:list():next() end)
vim.keymap.set("n", "<C-,>", function() harpoon:list():prev() end)
vim.keymap.set("n", "<C-.>", function() harpoon:list():next() end)
end
}