remove(nvim): telescope autocmd that fixed entering insert mode

This commit is contained in:
sankalp committed 2024-03-19 12:08:38 +05:45
1 parent b5552a3651
commit c857f9b7b4
1 file changed
-9
-9
View File
@@ -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("<Esc>", true, false, true), "i", false)
end
end,
})
local auto_close_filetype = {
"lazy",
"mason",