diff options
Diffstat (limited to 'fnl/config/harpoon.fnl')
-rw-r--r-- | fnl/config/harpoon.fnl | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/fnl/config/harpoon.fnl b/fnl/config/harpoon.fnl index 122f045..21f1b27 100644 --- a/fnl/config/harpoon.fnl +++ b/fnl/config/harpoon.fnl @@ -4,15 +4,13 @@ (def- opts {}) (util.setup :harpoon opts) -(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 -) +(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) |