From c0694ffdf06b46f139052867b9ca1d73c213c35e Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Fri, 2 May 2025 12:35:45 +0200 Subject: [PATCH] chore(nvim): update key map --- config/nvim/lua/plugins/harpoon.lua | 118 ++++++++++++++-------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/config/nvim/lua/plugins/harpoon.lua b/config/nvim/lua/plugins/harpoon.lua index b9cdb8b..d5e5ca6 100644 --- a/config/nvim/lua/plugins/harpoon.lua +++ b/config/nvim/lua/plugins/harpoon.lua @@ -1,63 +1,63 @@ -- Getting you where you want with the fewest keystrokes -- https://github.com/ThePrimeagen/harpoon return { - "ThePrimeagen/harpoon", - branch = "harpoon2", - keys = { - { - "a", - function() - require("harpoon"):list():add() - end, - desc = "Harpoon Add File", - }, - { - ";", - function() - local harpoon = require("harpoon") - harpoon.ui:toggle_quick_menu(harpoon:list()) - end, - desc = "Harpoon Quickmenu", - }, - { - "1", - function() - require("harpoon"):list():select(1) - end, - desc = "Harpoon Buffer 1", - }, - { - "2", - function() - require("harpoon"):list():select(2) - end, - desc = "Harpoon Buffer 2", - }, - { - "3", - function() - require("harpoon"):list():select(3) - end, - desc = "Harpoon Buffer 3", - }, - { - "4", - function() - require("harpoon"):list():select(4) - end, - desc = "Harpoon Buffer 4", - }, - { - "5", - function() - require("harpoon"):list():select(5) - end, - desc = "Harpoon Buffer 5", - }, - }, - opts = { - menu = { - width = vim.api.nvim_win_get_width(0) - 4, - }, - }, + "ThePrimeagen/harpoon", + branch = "harpoon2", + keys = { + { + "'", + function() + require("harpoon"):list():add() + end, + desc = "Harpoon Add File", + }, + { + ";", + function() + local harpoon = require("harpoon") + harpoon.ui:toggle_quick_menu(harpoon:list()) + end, + desc = "Harpoon Quickmenu", + }, + { + "1", + function() + require("harpoon"):list():select(1) + end, + desc = "Harpoon Buffer 1", + }, + { + "2", + function() + require("harpoon"):list():select(2) + end, + desc = "Harpoon Buffer 2", + }, + { + "3", + function() + require("harpoon"):list():select(3) + end, + desc = "Harpoon Buffer 3", + }, + { + "4", + function() + require("harpoon"):list():select(4) + end, + desc = "Harpoon Buffer 4", + }, + { + "5", + function() + require("harpoon"):list():select(5) + end, + desc = "Harpoon Buffer 5", + }, + }, + opts = { + menu = { + width = vim.api.nvim_win_get_width(0) - 4, + }, + }, }