summaryrefslogtreecommitdiff
path: root/fnl/config/which-key.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 00:06:43 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 00:06:43 +0200
commit2646fe374a65bed8f05219fa19aee90f52e69e1f (patch)
tree42840328dbcf98216beb772ab4523e9c1c2a764d /fnl/config/which-key.fnl
parent48b0d1b10bb5e0a3a69633721725d9c4059db396 (diff)
Add leader keymap for telescope commands
Diffstat (limited to 'fnl/config/which-key.fnl')
-rw-r--r--fnl/config/which-key.fnl3
1 files changed, 3 insertions, 0 deletions
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 [:<cmd>nohlsearch<CR> "No Highlight"]
:P ["<cmd>Telescope projects<cr>" :Projects]
:z [:<cmd>ZenMode<cr> "Zen Mode"]
+ :b ["<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})<cr>" "Switch buffers"]
+ :f ["<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>" "Find files"]
+ :t ["<cmd>Telescope live_grep theme=ivy<cr>" "Find text"]
:p {:name :Packer
:c [:<cmd>PackerCompile<cr> :Compile]
:i [:<cmd>PackerInstall<cr> :Install]