wookayin/dotfiles

Gradually migrate completion engine to coc (language server)

wookayin opened this issue · 2 comments

Language server is great, and I feel coc.nvim is now in a great shape, even better than before. It is time to use language servers and fade out deoplete.nvim (but not all, just several completion engines)!

As this feature might be highly experimental and have some annoying bugs to plain users of my dotfiles, we can think of the following plan and questions:

  • coc.nvim requires node and yarn installed. It is not shipped by default so it should be automatically installed.
  • Install coc.nvim but do not have it as a default (e.g. in favor of deoplete-jedi) unless explicitly and manually configured. What would be the flag?
  • How to configure the list of coc.nvim engines (e.g. coc-pyls, coc-json) and have them auto-installed?

The experimental feature can be turned on with:

$ dotfiles update --enable-coc
$ python install.py --enable-coc 

To disable, simply remove ~/.config/coc/

coc.nvim is now our default completion engine for neovim, replacing deoplete.