Only load coc.nvim when VIMCOC environment variable is set

This commit is contained in:
Anthony Rose 2021-03-07 23:14:05 +00:00
parent 5bdd9c80d5
commit e949d035c5

2
vimrc
View file

@ -163,7 +163,7 @@ else
set signcolumn=yes set signcolumn=yes
endif endif
if has("patch-8.1.1719") && (executable("nodejs") || executable("node")) if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executable("node"))
packadd coc.nvim packadd coc.nvim
" Use tab for trigger completion with characters ahead and navigate. " Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by