From 6e9dec388fe29e1b751de06e6bc9d2bbb8e41387 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Sun, 8 Aug 2021 19:49:28 -0700 Subject: [PATCH] return early from CompleteDone handler Return early from the CompleteDone handler when omnifunc is not set to go#complete#Complete. This should help interactions with other plugins like coc.nvim that some users leverage to do completion. Relates to #3272 --- autoload/go/auto.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/go/auto.vim b/autoload/go/auto.vim index ed8880a2d8..b0bac1743b 100644 --- a/autoload/go/auto.vim +++ b/autoload/go/auto.vim @@ -12,6 +12,10 @@ function! go#auto#template_autocreate() endfunction function! go#auto#complete_done() + if &omnifunc isnot 'go#complete#Complete' + return + endif + call s:echo_go_info() call s:ExpandSnippet() endfunction