Closed PezCoder closed 1 year ago
coc.nvim, there is a variable called g:coc_global_extensions, and you can use that variable to automatically install LS.
so, you can write only brew install watchman
to do
of vim-plug
You can specify a function as the post-update hook.
Ah thanks, this worked! Thanks!
This is what I used for the above usecase:
" How post update hook works
" https://github.com/junegunn/vim-plug/blob/master/README.md#post-update-hooks
function! PostInstallCocNvim(info)
if a:info.status == 'installed' || a:info.force
!brew install watchman
CocInstall coc-tsserver "... other plugins
endif
endfunction
Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': function('PostInstallCocNvim') }
What?
I have a usecase where as part of installing coc.nvim through Plug, I want to specify multiple dependencies to be installed which are:
:CocInstall <bunch of plugins>
!brew install watchman
I'm unsure in terms of how to do that asdo
only support providing a single command.Minimal config
:version