summaryrefslogtreecommitdiff
path: root/lua/settings/keymaps.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-11 22:33:44 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-11 22:33:44 +0100
commit7ab7a3cf61548c697db6547aaea02dc0aec47c45 (patch)
treefda6e2acdf4e7a24ffc083629d587295219c4994 /lua/settings/keymaps.lua
parent1e0cedb58e81aa83a2acb2043e1ace249b414793 (diff)
Add keymaps for telescope
Diffstat (limited to 'lua/settings/keymaps.lua')
-rw-r--r--lua/settings/keymaps.lua9
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)