Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

Deloplete interfering with Coc ? #1192

Closed vaibhav135 closed 3 years ago

vaibhav135 commented 3 years ago

OS => Ubuntu 20.04 lts

editor => NeoVim

I am currently using Coc and recently started using ALE with deoplete (for python). So what end up happening is whenever I am using a .txt file it is giving me an error/warning in insert mode

Here's the image of warning/errors: image

I tried to disable Coc for certain file types but seems like not working or something.. autocmd FileType python,venv,ASCII text,vim let b:coc_suggest_disable = 1

Also I've seen the similar issues regarding these but they actually never provide a solution.

The thing is I understand the problem but don't know the solution. Your help will be highly appreciated

vaibhav135 commented 3 years ago

@Shougo tell me If you need my init.vim or .vimrc. I will provide them.

Shougo commented 3 years ago

Unfortunately, both deoplete and coc.nvim provide auto completion feature. So deoplete conflicts with coc.nvim. You cannot use both. You need to choose coc.nvim or deoplete.

Shougo commented 3 years ago

But to change |deoplete-options-overwrite_completeopt| may work for you.

call deoplete#custom#option('overwrite_completeopt', v:false)
vaibhav135 commented 3 years ago

@Shougo can I overwrite for some certain files like python or .txt files?

Shougo commented 3 years ago

You cannot. Because coc.nvim overwrites 'completeopt' option and it is global option unfortunately. No magic.

Shougo commented 3 years ago

The check is implemented in coc.nvim side and you should request it in coc.nvim issues instead.

vaibhav135 commented 3 years ago

Ok thanks really appreciate your help. Have a great day.