aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-01-28 16:06:33 -0600
committerToby Vincent <tobyv13@gmail.com>2023-01-28 16:57:19 -0600
commitc6f71cb7e2e03fdd2ebdda7b0f0c523da1a08449 (patch)
tree8b9ff80189bae495ab8d87f2940ed86b9e950875 /nvim
parentc22f9555ec86aebc5827582f05a7ba422bd70175 (diff)
fix(nvim): add back telescope keymaps
*BONUS* includes warning when using them to help migrate
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/telescope.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/telescope.lua b/nvim/.config/nvim/lua/tobyvin/plugins/telescope.lua
index 2e19016..416fdaa 100644
--- a/nvim/.config/nvim/lua/tobyvin/plugins/telescope.lua
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/telescope.lua
@@ -26,6 +26,21 @@ local M = {
defaults = {
borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
file_ignore_patterns = { "^.git/" },
+ mappings = {
+ i = {
+ ["<Esc>"] = function(...)
+ vim.notify(
+ "You used `<Esc>` to close telescope. Try to use `<C-c>`!",
+ vim.log.levels.WARN,
+ { title = "Oops!" }
+ )
+ require("telescope.actions").close(...)
+ end,
+ ["<C-h>"] = function(...)
+ require("telescope.actions").which_key(...)
+ end,
+ },
+ },
vimgrep_arguments = {
"rg",
"--color=never",