neoclide / coc-vetur

Vue language server extension for coc.nvim
219 stars 7 forks source link

安装后不起作用 #62

Closed tonnyone closed 3 years ago

tonnyone commented 3 years ago

配置文件显示这样: image

用一下命令看,什么也没有输出:

:CocCommand workspace.showOutput vetur.

tonnyone commented 3 years ago

刚开始用这种方式安装的 Plug 'neoclide/coc-vetur', {'do': 'yarn install --frozen-lockfile'}

发现有时候加载不了部分extension:

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

换成这种方式就好了

let g:coc_global_extensions = [
 \    'coc-html', 
 \    'coc-css', 
 \    'coc-tsserver', 
 \    'coc-json', 
 \    'coc-snippets', 
 \    'coc-highlight', 
 \    'coc-pairs', 
 \    'coc-vetur', 
 \    'coc-prettier' 
 \]
yaegassy commented 3 years ago

@tonnyone It seems that this commit removes prepare.

Try yarn install --frozen-lockfile && yarn build.

Plug 'neoclide/coc-vetur', {'do': 'yarn install --frozen-lockfile && yarn build'}