Better harpoon keybindings
This commit is contained in:
		| @ -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 | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user