diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-17 00:36:26 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-17 00:36:26 +0200 |
commit | 885552708c0306cd226e7d22fe8a5728bbd951e2 (patch) | |
tree | 769cfecff7269f6f1f754b861836753dc242529e /fnl/config | |
parent | 9688dab96217ff11d2524bf2340dbd3d976db0b8 (diff) |
Fix loading of telescope extensions
Diffstat (limited to 'fnl/config')
-rw-r--r-- | fnl/config/auto-session.fnl | 5 | ||||
-rw-r--r-- | fnl/config/harpoon.fnl | 22 | ||||
-rw-r--r-- | fnl/config/telescope.fnl | 5 |
3 files changed, 15 insertions, 17 deletions
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" - "<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) 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))) |