summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/config/auto-session.fnl5
-rw-r--r--fnl/config/harpoon.fnl22
-rw-r--r--fnl/config/telescope.fnl5
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)))