lervag / vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
MIT License
5.58k stars 393 forks source link

Replace deoplete with ddc due to stop of active development #2146

Closed petRUShka closed 2 years ago

petRUShka commented 3 years ago

Description

Deoplete isn't actively developed at the moment:

Note: Active development on deoplete.nvim has stopped. The only future changes will be bug fixes. Please see ddc.vim.

So I propose migration in help files from deoplete to ddc.

lervag commented 3 years ago

Thanks, this is a valid request. I would hesitate to remove the deoplete content, but I would not mind adding content for ddc.vim. Would you be willing to suggest by PR? I don't have the time to test ddc.vim at the moment, so it would be useful if someone could propose a configuration that I could add to the docs.

krillin666 commented 3 years ago

Description

Deoplete isn't actively developed at the moment:

Note: Active development on deoplete.nvim has stopped. The only future changes will be bug fixes. Please see ddc.vim.

So I propose migration in help files from deoplete to ddc.

Is it already possible to use ddc with Vimtex ? If so, can you give instructions how ? Thanks !

lervag commented 3 years ago

I'll allow this issue to stay open for some more time, but I would be very happy if someone can pitch in and perhaps suggest text to add to the docs.

theova commented 3 years ago

There are some instructions from ddc's (see https://github.com/Shougo/ddc-omni and https://github.com/Shougo/ddc.vim/issues/48#issuecomment-918147991):

call vimtex#init()
call ddc#custom#patch_filetype(['tex'], 'sourceOptions', {
      \ 'omni': {'mark': 'O', 'forceCompletionPattern': g:vimtex#re#deoplete},
      \ })
call ddc#custom#patch_filetype(['tex'], 'sourceParams', {
      \ 'omni': {'omnifunc': 'vimtex#complete#omnifunc'},
      \ })

However, I cannot reach the same functionalities as with deoplete (the actual completion is still missing).

lervag commented 3 years ago

Thanks @theova. I'll continue to leave this issue open until I get help to clarify the correct configuration. As before, I don't use ddc myself.

Note, you should never need to do call vimtex#init() manually (unless you are an expert doing something crazy).

lervag commented 2 years ago

It's been some time now without further response. As I don't use ddc I can't really do anything more here. As before, please open a PR with suggestions for the docs or open an issue with useful instructions that I can add to the docs. Of course, feel free to reopen to continue the discussion or open new issues for other questions.