fix telescope bug stopping insert randomly
This commit is contained in:
parent
21378c3260
commit
6e34bf3039
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue