neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Install with vim-plug #250

Open ptwales opened 4 years ago

ptwales commented 4 years ago

I noticed that coc-metals can be installed with either :CocInstall or with vim-plug. I prefer the vim-plug method since it can be saved to my dotfiles. I was wondering if I can do the same for coc-python (or any other coc plugin for that matter).

I seem to have succesfully installed coc-python with

Plug 'neoclide/coc-python', {'do': 'yarn install --frozen-lockfile'}

Is that the correct way to install coc-python with vim-plug? If not, what is and would it be appropriate to add it to the README as an alternative installation method?

matt-fff commented 4 years ago

I like to specify plugins in init.vim with let g:coc_global_extensions = ['coc-python', 'coc-css', 'coc-so-on', 'coc-so-forth']. I like having them there more than using Plug.

fannheyward commented 4 years ago

@ptwales yes, it's the correct way https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions#use-vims-plugin-manager-for-coc-extension