coc-vimlsp


Ⅰ. 插件描述

viml language server

Ⅱ. 基本信息

创建日期:  2019-04-20
使用用户:  6
Github星:  61
插件作者:  年糕小豆汤

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'iamcco/coc-vimlsp'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'iamcco/coc-vimlsp'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'iamcco/coc-vimlsp'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/iamcco/coc-vimlsp

Ⅳ. 文档说明

# vim language server extension

vim-language-server
extension for coc.nvim

image

Features

  • auto completion
  • function signature help
  • hover document
  • go to definition
  • go to references
  • rename
  • snippets
  • diagnostic

Install

:CocInstall coc-vimlsp

Config

document highlight:

let g:markdown_fenced_languages = [
      \ 'vim',
      \ 'help'
      \]

coc-settings.json

  • vimlsp.trace.server

"description": "Trace level of vim language server"

  • vimlsp.debug: default: false

"description": "enable coc-vimlsp service debug"

  • vimlsp.diagnostic.enable: default: true

"description": "enable diagnostic"

  • vimlsp.indexes.runtimepath: default: true

"description": "if index vim's runtimepath files, this will effect the suggest"

  • vimlsp.indexes.count: default: 3

"description": "count of files index at the same time, change to greater will speed up index but will cause high CPU usage for some time"

  • vimlsp.indexes.gap: default: 100

"description": "time gap between parse file, change to smaller will speed up index but will cause high CPU usage for some time"

  • vimlsp.indexes.projectRootPatterns: default: [".git", "autoload", "plugin"]

"description": "Names of files used as the mark of project root."

  • vimlsp.suggest.fromVimruntime: default: true

"description": "completeitems from runtimepath's vim files, if this is true that fromVimruntime is true" > },

  • vimlsp.suggest.fromRuntimepath: default: false

"description": "completeitems from runtimepath's vim files, if this is true that fromVimruntime is true"

Note: while fromRuntimepath is true, if you have install too many plugins it will slow down the complete

Buy Me A Coffee ☕️

btc

image

添加新评论