From 10b175f252104458d7478d8a2822818850cfdf92 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 15 Jan 2023 22:47:30 +0100 Subject: Refactor file structure --- fnl/plugins/harpoon.fnl | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 fnl/plugins/harpoon.fnl (limited to 'fnl/plugins/harpoon.fnl') diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl deleted file mode 100644 index 7674f0b..0000000 --- a/fnl/plugins/harpoon.fnl +++ /dev/null @@ -1,25 +0,0 @@ -;; Harpoon files for navigation. - -(fn telescope-ext [ext fun opts] - (let [telescope (require :telescope) - themes (require :telescope.themes) - theme (. opts :theme)] - ((. (. (. telescope :extensions) ext) fun) ((. themes theme) opts)))) - -(fn setup [] - (vim.keymap.set :n : - (fn [] - (telescope-ext :harpoon :marks - {:theme :get_dropdown - :previewer false - :initial_mode :normal - :prompt_title :Harpoon})) - {}) - (vim.keymap.set :n : - "Telescope buffers theme=dropdown previewer=false initial_mode=normal" - {})) - -{1 :ThePrimeagen/harpoon - :event :BufReadPost - :config (fn [] - (setup))} -- cgit v1.2.3-70-g09d2