summaryrefslogtreecommitdiff
path: root/fnl/config/harpoon.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 02:49:49 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 02:49:49 +0100
commit86fc163e549d78136855ac2b45e91ffb2f43affc (patch)
tree20fab78a2ff2635af5ac95f2b2a11d9d07ace0e1 /fnl/config/harpoon.fnl
parent0d7f782cb4e68cff000beb00e8ab64308a66f3f0 (diff)
Refactor config loading
Diffstat (limited to 'fnl/config/harpoon.fnl')
-rw-r--r--fnl/config/harpoon.fnl32
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))}