From c3046ead125c6c9629a8cee940f9743573613e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 19 Mar 2024 00:54:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20remove(nvim):=20telesco?= =?UTF-8?q?pe=20autocmd=20that=20fixed=20entering=20insert=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no longer needed --- .config/nvim/lua/config/autocmds.lua | 9 --------- .config/nvim/lua/plugins/extras/lazyvim/telescope.lua | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index b007bd05..e8afe705 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -9,15 +9,6 @@ ac("BufRead", { end, }) --- Fix telescope entering on insert mode -ac("WinLeave", { - callback = function() - if vim.bo.ft == "TelescopePrompt" and vim.fn.mode() == "i" then - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("", true, false, true), "i", false) - end - end, -}) - local auto_close_filetype = { "lazy", "mason", diff --git a/.config/nvim/lua/plugins/extras/lazyvim/telescope.lua b/.config/nvim/lua/plugins/extras/lazyvim/telescope.lua index db436dbb..f87ec5d5 100644 --- a/.config/nvim/lua/plugins/extras/lazyvim/telescope.lua +++ b/.config/nvim/lua/plugins/extras/lazyvim/telescope.lua @@ -59,6 +59,7 @@ return { [""] = require("telescope.actions.layout").toggle_preview, [""] = actions.cycle_history_next, [""] = actions.cycle_history_prev, + [""] = actions.close, }, }, file_ignore_patterns = {