From 86fc163e549d78136855ac2b45e91ffb2f43affc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 8 Jan 2023 02:49:49 +0100 Subject: Refactor config loading --- fnl/config/harpoon.fnl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'fnl/config/harpoon.fnl') 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 : + (fn [] + (util.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" + {})) -(util.setup :harpoon opts) - -(vim.keymap.set :n : - (fn [] - (util.telescope-ext :harpoon :marks - {:theme :get_dropdown - :previewer false - :initial_mode :normal - :prompt_title :Harpoon})) - {}) - -(nvim.set_keymap :n : - "Telescope buffers theme=dropdown previewer=false initial_mode=normal" - {}) +{1 :ThePrimeagen/harpoon + :event :BufReadPost + :config (fn [] + (setup))} -- cgit v1.2.3-70-g09d2