diff options
Diffstat (limited to 'fnl/config/harpoon.fnl')
| -rw-r--r-- | fnl/config/harpoon.fnl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/fnl/config/harpoon.fnl b/fnl/config/harpoon.fnl index 9f9d2f2..9bdd81f 100644 --- a/fnl/config/harpoon.fnl +++ b/fnl/config/harpoon.fnl @@ -1,19 +1,19 @@ ;; Harpoon files for navigation. -(module config.harpoon {autoload {util config.util nvim aniseed.nvim}}) -(def- opts {}) +(fn setup [] + (vim.keymap.set :n :<tab> + (fn [] + (util.telescope-ext :harpoon :marks + {:theme :get_dropdown + :previewer false + :initial_mode :normal + :prompt_title :Harpoon})) + {}) + (vim.keymap.set :n :<s-tab> + "<cmd>Telescope buffers theme=dropdown previewer=false initial_mode=normal<cr>" + {})) -(util.setup :harpoon opts) - -(vim.keymap.set :n :<tab> - (fn [] - (util.telescope-ext :harpoon :marks - {:theme :get_dropdown - :previewer false - :initial_mode :normal - :prompt_title :Harpoon})) - {}) - -(nvim.set_keymap :n :<s-tab> - "<cmd>Telescope buffers theme=dropdown previewer=false initial_mode=normal<cr>" - {}) +{1 :ThePrimeagen/harpoon + :event :BufReadPost + :config (fn [] + (setup))} |