summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf@nexure.io>2022-09-27 17:29:52 +0200
committerGustaf Rydholm <gustaf@nexure.io>2022-09-27 17:29:52 +0200
commit4c5f771c8423de432ac02d0092f5ea2754d189ce (patch)
treebf53b945de0695ef7a0445543026633a57529bda /fnl
parentd9e9fc259ed4b3d1f985e3f4f19eb323315242b9 (diff)
Add faster text and file search keymaps
Diffstat (limited to 'fnl')
-rw-r--r--fnl/config/which-key.fnl15
1 files 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 ["<cmd>lua require('harpoon.mark').add_file()<cr>" "Harpoon"]
+(def- mmappings {:a ["<cmd>lua require('harpoon.mark').add_file()<cr>"
+ :Harpoon]
:b ["<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})<cr>"
"Switch buffers"]
- :l ["<cmd>lua require('harpoon.ui').nav_next()<cr>" "Harpoon Next"]
- :h ["<cmd>lua require('harpoon.ui').nav_prev()<cr>" "Harpoon Prev"]
+ :f ["<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>"
+ "Find files"]
+ :g ["<cmd>Telescope live_grep theme=ivy<cr>" "Find text"]
+ :l ["<cmd>lua require('harpoon.ui').nav_next()<cr>"
+ "Harpoon Next"]
+ :h ["<cmd>lua require('harpoon.ui').nav_prev()<cr>"
+ "Harpoon Prev"]
:t ["<cmd>Telescope harpoon marks<cr>" "Search Files"]
- :r ["<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>" "Harpoon UI"]})
+ :r ["<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>"
+ "Harpoon UI"]})
(def- nopts {:mode :n
:prefix :<leader>