From cb2d4aeb1768eeb0a0f62086d94d4f63eb7ac649 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Thu, 5 Dec 2024 13:13:58 -0500 Subject: [PATCH] remove broken harpoon config --- .config/nvim/lua/plugins/harpoon.lua | 60 ---------------------------- 1 file changed, 60 deletions(-) delete mode 100644 .config/nvim/lua/plugins/harpoon.lua diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua deleted file mode 100644 index 4a1b1e8..0000000 --- a/.config/nvim/lua/plugins/harpoon.lua +++ /dev/null @@ -1,60 +0,0 @@ -return { - 'ThePrimeagen/harpoon', - branch = 'harpoon2', - dependencies = { - 'nvim-lua/plenary.nvim', - 'nvim-telescope/telescope.nvim', - }, - event = 'VeryLazy', - - config = function() - local harpoon = require('harpoon') - local map = vim.keymap - - 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 - - require('telescope.pickers') - .new({}, { - prompt_title = 'Harpoon', - finder = require('telescope.finders').new_table({ - results = file_paths, - }), - previewer = conf.file_previewer({}), - sorter = conf.generic_sorter({}), - }) - :find() - end - - map.set('n', 'a', function() - harpoon:list():add() - end, { desc = 'Harpoon this' }) - map.set('n', '', function() - toggle_telescope(harpoon:list()) - end, { desc = 'Harpoon UI' }) - map.set('n', '', function() - harpoon:list():select(1) - end, { desc = 'Mark 1' }) - map.set('n', '', function() - harpoon:list():select(2) - end, { desc = 'Mark 2' }) - map.set('n', '', function() - harpoon:list():select(3) - end, { desc = 'Mark 3' }) - map.set('n', '', function() - harpoon:list():select(4) - end, { desc = 'Mark 4' }) - map.set('n', '', function() - harpoon:list():prev() - end, { desc = 'Cycle back' }) - map.set('n', '', function() - harpoon:list():next() - end, { desc = 'Cycle forward' }) - end, -}