neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.47k stars 956 forks source link

Autocomplete does not works properly in new build version of neovim. #3989

Closed akashdiphazra closed 2 years ago

akashdiphazra commented 2 years ago

Result from CocInfo

Describe the bug

Autocomplete does not works properly.

when I select anything from the pop up it doesn't completes the code.

Reproduce the bug

Plugin layout

/home/akashdiphazra/.config/nvim/
├── after
│   └── plugin
│       ├── autopairs.rc.lua
│       ├── gruvbox.rc.vim
│       ├── nerdtree.rc.vim
│       ├── telescope.rc.lua
│       ├── toggleterm.rc.lua
│       ├── treesitter.rc.lua
│       └── web-devicons.rc.lua
├── coc-settings.json
├── init.vim
├── keymap.vim
├── linux.vim
└── plug.vim
syntax enable
set number
set termguicolors
set t_Co=256
set relativenumber
set encoding=UTF-8
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set expandtab
set autoindent
set copyindent
set noswapfile
set mouse=a
filetype on

" Setting the file format
set showtabline=2
set laststatus=2
" Some servers have issues with backup files, see #649.
set nobackup
set nowritebackup

" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300

" Don't pass messages to |ins-completion-menu|.
set shortmess+=c

" ------------------------------------------ SPLITS AND TABBED FILES START  ----------------------------------------------
set splitbelow splitright

" --------------------------------------------  TARGET CURRENT DIRECTORY ------------------------------------------------
autocmd BufEnter * silent! lcd %:p:h

" --------------------------------------------  TARGET CURRENT DIRECTORY ------------------------------------------------

runtime ./plug.vim
if has("unix")
  let s:uname = system("uname -s")
  " Do Linux stuff
  if s:uname == "Linux\n"
    runtime ./linux.vim
  endif
endif
runtime ./keymap.vim

let g:airline_theme='molokai'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail'
let g:airline#extensions#whitespace#enabled = 0  " for trailing whitespace

CocInfo


## versions

vim version: NVIM v0.8.0-dev-768-gb8dcbcc73
node version: v18.7.0
coc.nvim version: 0.0.82-9bec5321 2022-08-02 22:52:26 +0800
coc.nvim directory: /home/akashdiphazra/.local/share/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux

## Log of coc.nvim

2022-08-03T11:08:49.664 INFO (pid:10097) [plugin] - coc.nvim initialized with node: v18.7.0 after 454ms
2022-08-03T11:08:49.719 INFO (pid:10097) [services] - registered service "clangd"
2022-08-03T11:08:49.770 INFO (pid:10097) [services] - clangd state change: stopped => starting
2022-08-03T11:08:49.814 INFO (pid:10097) [language-client-index] - Language server "clangd" started with 10112
2022-08-03T11:08:49.983 INFO (pid:10097) [services] - clangd state change: starting => running
2022-08-03T11:08:50.038 INFO (pid:10097) [services] - service clangd started
2022-08-03T11:09:31.696 INFO (pid:10097) [attach] - receive notification: showInfo []
2022-08-03T11:37:52.557 WARN (pid:10097) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
2022-08-03T11:53:21.559 INFO (pid:10097) [attach] - receive notification: showInfo []

Screenshots (optional)

Screencast from 03-08-22 11 37 39 AM IST

fannheyward commented 2 years ago

I'm using NVIM v0.8.0-dev-2208-g8952def50, everything works as expected.

Please test with minimal vimrc, post your coc related configurations, without any other plugins.

chemzqm commented 2 years ago

You have to remap <cr> see #3985