Don't stopinsert if completing - bad interaction with vim-lsp omni preview

Tue, 21 Apr 2020 22:00:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 21 Apr 2020 22:00:13 -0500
changeset 855
3123a01b8e73
parent 854
6554d2a25c17
child 856
d74ad38b2ca4

Don't stopinsert if completing - bad interaction with vim-lsp omni preview

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -260,7 +260,7 @@ set go-=T go-=m go-=t "no toolbar, menu,
 augroup vimrc
   autocmd!
 
-  autocmd WinLeave * stopinsert
+  autocmd WinLeave * if !pumvisible() | stopinsert | endif
 
   " set and load a session based on servername
   autocmd VimEnter * nested call vimrc#AutoSessionCheck()

mercurial