vim:plugs: Check for nodejs executable for Coc

This commit is contained in:
2022-03-30 01:55:13 +02:00
parent 4ae8a2db83
commit efe4b7a1d8

View File

@@ -4,7 +4,7 @@ packloadall
" Auto completion " Auto completion
" needs vim >= 8.1.1719 to support features like popup and text property. " needs vim >= 8.1.1719 to support features like popup and text property.
if (has('patch-8.1.1719') || has('nvim')) if ((has('patch-8.1.1719') || has('nvim')) && executable('nodejs'))
let g:coc_global_extensions = let g:coc_global_extensions =
\ ['coc-clangd', 'coc-sh', 'coc-python', 'coc-vimtex'] \ ['coc-clangd', 'coc-sh', 'coc-python', 'coc-vimtex']
packadd coc.nvim packadd coc.nvim