From 885552708c0306cd226e7d22fe8a5728bbd951e2 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 17 Oct 2022 00:36:26 +0200 Subject: Fix loading of telescope extensions --- fnl/config/auto-session.fnl | 5 ++++- fnl/config/harpoon.fnl | 22 ++++++++++------------ fnl/config/telescope.fnl | 5 +---- 3 files changed, 15 insertions(+), 17 deletions(-) (limited to 'fnl/config') diff --git a/fnl/config/auto-session.fnl b/fnl/config/auto-session.fnl index 0ac88ce..2e236b2 100644 --- a/fnl/config/auto-session.fnl +++ b/fnl/config/auto-session.fnl @@ -15,6 +15,9 @@ :previewer false :prompt_title :Sessions}) -(set vim.o.sessionoptions "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal") +(set vim.o.sessionoptions + "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal") (util.setup :session-lens lens-opts) (util.setup :auto-session auto-opts) +(let [telescope (require :telescope)] + (telescope.load_extension :session-lens)) 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" - "" - "lua require('telescope').extensions.harpoon.marks(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal', prompt_title='Harpoon'})" - opts -) -(nvim.set_keymap - "n" - "" - "lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal'})" - opts -) +(let [telescope (require :telescope)] + (telescope.load_extension :harpoon)) + +(nvim.set_keymap :n : + "lua require('telescope').extensions.harpoon.marks(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal', prompt_title='Harpoon'})" + opts) + +(nvim.set_keymap :n : + "lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal'})" + opts) diff --git a/fnl/config/telescope.fnl b/fnl/config/telescope.fnl index dc58b01..d421b0d 100644 --- a/fnl/config/telescope.fnl +++ b/fnl/config/telescope.fnl @@ -76,7 +76,4 @@ :override_file_sorter true :case_mode :smart_case}}}) (telescope.load_extension :fzf) - (telescope.load_extension :session-lens) - (telescope.load_extension :harpoon) - (telescope.load_extension :frecency) - (telescope.load_extension :projects))) + (telescope.load_extension :frecency))) -- cgit v1.2.3-70-g09d2