| 
									
										
										
										
											2025-02-28 10:25:29 +00:00
										 |  |  | local harpoon = require "harpoon" | 
					
						
							| 
									
										
										
										
											2024-10-09 18:32:36 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-28 10:25:29 +00:00
										 |  |  | harpoon:setup() | 
					
						
							| 
									
										
										
										
											2024-10-09 18:32:36 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-02 22:10:27 +00:00
										 |  |  | vim.keymap.set("n", "<leader>hm", function() | 
					
						
							| 
									
										
										
										
											2025-02-28 10:25:29 +00:00
										 |  |  |   harpoon:list():add() | 
					
						
							|  |  |  | end) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-02 22:10:27 +00:00
										 |  |  | vim.keymap.set("n", "<leader>hl", function() | 
					
						
							| 
									
										
										
										
											2025-02-28 10:25:29 +00:00
										 |  |  |   harpoon.ui:toggle_quick_menu(harpoon:list()) | 
					
						
							|  |  |  | end) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-02 22:10:27 +00:00
										 |  |  | -- Set <space>1..<space>5 be my shortcuts to moving to the files | 
					
						
							|  |  |  | for _, idx in ipairs { 1, 2, 3, 4, 5 } do | 
					
						
							|  |  |  |   vim.keymap.set("n", string.format("<space>%d", idx), function() | 
					
						
							|  |  |  |     harpoon:list():select(idx) | 
					
						
							|  |  |  |   end) | 
					
						
							|  |  |  | end |