summaryrefslogtreecommitdiff
path: root/fnl/config/harpoon.fnl
blob: 21f1b27bb568c8a6395d56ceff1c3a5b73742872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;; Harpoon files for navigation.
(module config.harpoon {autoload {util config.util nvim aniseed.nvim}})

(def- opts {})

(util.setup :harpoon opts)
(let [telescope (require :telescope)]
  (telescope.load_extension :harpoon))

(nvim.set_keymap :n :<tab>
                 "<cmd>lua require('telescope').extensions.harpoon.marks(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal', prompt_title='Harpoon'})<cr>"
                 opts)

(nvim.set_keymap :n :<s-tab>
                 "<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal'})<cr>"
                 opts)