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

no longer needed
This commit is contained in:
Sergio Laín 2024-03-19 00:54:16 +01:00
parent 225f33dc4a
commit c3046ead12
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 1 additions and 9 deletions

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",

View file

@ -59,6 +59,7 @@ return {
["<C-p>"] = require("telescope.actions.layout").toggle_preview,
["<C-Down>"] = actions.cycle_history_next,
["<C-Up>"] = actions.cycle_history_prev,
["<esc>"] = actions.close,
},
},
file_ignore_patterns = {