I am new to Vim and NeoVim, I setup the latest NeoVim on MAC using brew install nvim --head.
I setup the latest verison for the lsp suppport. I installed the CoC plugin and the CoC-go plugin for auto-completion in go.
However I see a problem:
When I open any go file for the first time, after pressing
., NeoVim hangs for few seconds before it starts working and the autocomplete popup is visible. Below the status line I see the errorSource go timeout after 5000msOn press of
.the auto-completion popup opens and closes immediately; I have to erase the.and type it once again for the auto-completion to be visible again. It does not close the second time. This happens every time.
Is this because the current latest version is unstable or is there any configuration I am missing? The first problem is still manageable since it happens only once; the second affects my productivity.
-----Edit: Adding code
set completeopt=menu,menuone,noselect
set guifont=monaco:h12
call plug#begin('~/.config/nvim/plugged')
Plug 'cocopon/iceberg.vim'
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neovim/nvim-lspconfig'
Plug 'Yggdroot/indentLine'
call plug#end()
au filetype go inoremap <buffer> . .<C-x><C-o>
"adding coc setings
source ~/.config/nvim/plug-config/coc.vim
--Update:
au filetype go inoremap <buffer> . .<C-x><C-o>
this line seems to be the culprit