From b5000aed439b0002e10074d1605a593441f176df Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 31 Dec 2022 00:43:33 +0100 Subject: Move telescope plugins to telescope config --- fnl/config/telescope.fnl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'fnl/config/telescope.fnl') diff --git a/fnl/config/telescope.fnl b/fnl/config/telescope.fnl index ef125bb..c04c4a5 100644 --- a/fnl/config/telescope.fnl +++ b/fnl/config/telescope.fnl @@ -3,6 +3,10 @@ (def- opts {:noremap true :silent true}) +(def- lens-opts {:path_display [:shorten] + :previewer false + :prompt_title :Sessions}) + (let [telescope (util.prequire :telescope)] (let [actions (require :telescope.actions)] (telescope.setup {:defaults {:prompt_prefix "  " @@ -77,4 +81,7 @@ :case_mode :smart_case}}}) (telescope.load_extension :fzf) (telescope.load_extension :frecency) - (telescope.load_extension :orgmode))) + (telescope.load_extension :orgmode) + (telescope.load_extension :harpoon) + (util.setup :session-lens lens-opts) + (telescope.load_extension :session-lens))) -- cgit v1.2.3-70-g09d2