From 4c5f771c8423de432ac02d0092f5ea2754d189ce Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 27 Sep 2022 17:29:52 +0200 Subject: Add faster text and file search keymaps --- fnl/config/which-key.fnl | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 153da92..b5eb319 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -35,13 +35,20 @@ :noremap true :nowait true}) -(def- mmappings {:a ["lua require('harpoon.mark').add_file()" "Harpoon"] +(def- mmappings {:a ["lua require('harpoon.mark').add_file()" + :Harpoon] :b ["lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})" "Switch buffers"] - :l ["lua require('harpoon.ui').nav_next()" "Harpoon Next"] - :h ["lua require('harpoon.ui').nav_prev()" "Harpoon Prev"] + :f ["lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})" + "Find files"] + :g ["Telescope live_grep theme=ivy" "Find text"] + :l ["lua require('harpoon.ui').nav_next()" + "Harpoon Next"] + :h ["lua require('harpoon.ui').nav_prev()" + "Harpoon Prev"] :t ["Telescope harpoon marks" "Search Files"] - :r ["lua require('harpoon.ui').toggle_quick_menu()" "Harpoon UI"]}) + :r ["lua require('harpoon.ui').toggle_quick_menu()" + "Harpoon UI"]}) (def- nopts {:mode :n :prefix : -- cgit v1.2.3-70-g09d2