From 2cb9af61acfda466b747e5b18c947d1538c1240e Mon Sep 17 00:00:00 2001 From: Jean-Pierre Appel Date: Mon, 15 Jan 2024 16:15:05 -0500 Subject: refactor: setup completions less insanely --- nvim/lua/plugins/harpoon.lua | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'nvim/lua/plugins/harpoon.lua') diff --git a/nvim/lua/plugins/harpoon.lua b/nvim/lua/plugins/harpoon.lua index 061ca9e..123b5db 100644 --- a/nvim/lua/plugins/harpoon.lua +++ b/nvim/lua/plugins/harpoon.lua @@ -6,41 +6,53 @@ return { require("harpoon"):setup() end, keys = { - {"", function() + { + "", + function() local harpoon = require("harpoon") harpoon.ui:toggle_quick_menu(harpoon:list()) end, desc = "Open Harpoon Quickmenu" }, - {"m", function() + { + "m", + function() local harpoon = require("harpoon") harpoon:list():append() end, desc = "Add file to harpoon" }, - {"1", function() + { + "1", + function() local harpoon = require("harpoon") harpoon:list():select(1) end, desc = "Navigate to the first file" }, - {"2", function() + { + "2", + function() local harpoon = require("harpoon") harpoon:list():select(2) end, desc = "Navigate to the second file" }, - {"3", function() + { + "3", + function() local harpoon = require("harpoon") harpoon:list():select(3) end, desc = "Navigate to the third file" }, - {"4", function() + { + "4", + function() local harpoon = require("harpoon") harpoon:list():select(4) end, desc = "Navigate to the fourth file" }, - } + } } -- cgit v1.2.3