summaryrefslogtreecommitdiff
path: root/fnl/config/harpoon.fnl
blob: 41b6b81d3ecf542fe1d8919e1d064a24c498e9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;; Harpoon files for navigation.

(local util (require :config.util))

(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>"
                  {}))

{1 :ThePrimeagen/harpoon
 :event :BufReadPost
 :config (fn []
           (setup))}