🗑️ remove(nvim): telescope autocmd that fixed entering insert mode
no longer needed
This commit is contained in:
parent
225f33dc4a
commit
c3046ead12
2 changed files with 1 additions and 9 deletions
|
@ -9,15 +9,6 @@ ac("BufRead", {
|
||||||
end,
|
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 = {
|
local auto_close_filetype = {
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
|
|
|
@ -59,6 +59,7 @@ return {
|
||||||
["<C-p>"] = require("telescope.actions.layout").toggle_preview,
|
["<C-p>"] = require("telescope.actions.layout").toggle_preview,
|
||||||
["<C-Down>"] = actions.cycle_history_next,
|
["<C-Down>"] = actions.cycle_history_next,
|
||||||
["<C-Up>"] = actions.cycle_history_prev,
|
["<C-Up>"] = actions.cycle_history_prev,
|
||||||
|
["<esc>"] = actions.close,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue