fix telescope bug stopping insert randomly

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-09-21 11:09:10 -05:00
parent 21378c3260
commit 6e34bf3039

View file

@ -33,11 +33,12 @@ vim.api.nvim_create_autocmd("BufRead", {
end,
})
-- AUto exit insert mode whenever we switch screens
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
callback = function()
-- if vim.bo.filetype == 'neo-tree' then
vim.api.nvim_command("stopinsert")
-- end
if vim.bo.filetype ~= "TelescopePrompt" and vim.bo.filetype ~= nil and vim.bo.filetype ~= "" then
vim.api.nvim_command("stopinsert")
end
end,
})