I am new to vim and I installed vim-go today. I set up auto completion with gopls with omnifunc set as go#complete#Complete. It works as expected but it always writes the current suggestion automatically. this is very annoying since it always writes the suggestion without me accepting it.
How to disable omnifunc autowrite suggestions
241 views Asked by Kirubel At
1
It turns out the problem was the default value of
completeoptoption in vim. editing it to have the valuenoinsertsolved the problem. add the following line in ~/.vimrcset completeopt=menuone,popup,noinsertThe above is just an example. the values except
noinsertare just my own preferences.