diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 00:06:43 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 00:06:43 +0200 |
commit | 2646fe374a65bed8f05219fa19aee90f52e69e1f (patch) | |
tree | 42840328dbcf98216beb772ab4523e9c1c2a764d | |
parent | 48b0d1b10bb5e0a3a69633721725d9c4059db396 (diff) |
Add leader keymap for telescope commands
-rw-r--r-- | fnl/config/telescope.fnl | 9 | ||||
-rw-r--r-- | 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 :<C-b> - "<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})<cr>" - opts) - (nvim.set_keymap :n :<C-f> - "<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>" - opts) - (nvim.set_keymap :n :<C-t> "<cmd>Telescope live_grep theme=ivy<cr>" 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 [:<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] |