diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-11 22:33:44 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-11 22:33:44 +0100 |
commit | 7ab7a3cf61548c697db6547aaea02dc0aec47c45 (patch) | |
tree | fda6e2acdf4e7a24ffc083629d587295219c4994 | |
parent | 1e0cedb58e81aa83a2acb2043e1ace249b414793 (diff) |
Add keymaps for telescope
-rw-r--r-- | lua/settings/keymaps.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/settings/keymaps.lua b/lua/settings/keymaps.lua index 7098891..3ad7161 100644 --- a/lua/settings/keymaps.lua +++ b/lua/settings/keymaps.lua @@ -66,3 +66,12 @@ keymap("t", "<C-h>", "<C-\\><C-N><C-w>h", term_opts) keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts) keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts) keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts) + +-- Telescope -- +keymap( + "n", + "<leader>f", + "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>", + opts +) +keymap("n", "<c-t>", "<cmd>Telescope live_grep<cr>", opts) |