diff options
author | Gustaf Rydholm <gustaf@nexure.io> | 2022-09-27 17:29:52 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf@nexure.io> | 2022-09-27 17:29:52 +0200 |
commit | 4c5f771c8423de432ac02d0092f5ea2754d189ce (patch) | |
tree | bf53b945de0695ef7a0445543026633a57529bda /fnl/config | |
parent | d9e9fc259ed4b3d1f985e3f4f19eb323315242b9 (diff) |
Add faster text and file search keymaps
Diffstat (limited to 'fnl/config')
-rw-r--r-- | fnl/config/which-key.fnl | 15 |
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> |