From 2646fe374a65bed8f05219fa19aee90f52e69e1f Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Jul 2022 00:06:43 +0200 Subject: Add leader keymap for telescope commands --- fnl/config/telescope.fnl | 9 +-------- fnl/config/which-key.fnl | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/fnl/config/telescope.fnl b/fnl/config/telescope.fnl index ea50f96..38ac138 100644 --- a/fnl/config/telescope.fnl +++ b/fnl/config/telescope.fnl @@ -75,11 +75,4 @@ :case_mode :smart_case}}}) (telescope.load_extension :fzf) (telescope.load_extension :file_browser) - (telescope.load_extension :projects) - (nvim.set_keymap :n : - "lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})" - opts) - (nvim.set_keymap :n : - "lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})" - opts) - (nvim.set_keymap :n : "Telescope live_grep theme=ivy" opts))) + (telescope.load_extension :projects))) diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 54cd0e8..1f9f0fe 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -47,6 +47,9 @@ :n [:nohlsearch "No Highlight"] :P ["Telescope projects" :Projects] :z [:ZenMode "Zen Mode"] + :b ["lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})" "Switch buffers"] + :f ["lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})" "Find files"] + :t ["Telescope live_grep theme=ivy" "Find text"] :p {:name :Packer :c [:PackerCompile :Compile] :i [:PackerInstall :Install] -- cgit v1.2.3-70-g09d2