Ⅰ. 插件描述
TexLab extension for coc.nvimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fannheyward/coc-texlab'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fannheyward/coc-texlab'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fannheyward/coc-texlab'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fannheyward/coc-texlab
Ⅳ. 文档说明
# coc-texlab
fork of texlab-vscode, provides editing support for LaTeX documents, powered by the TexLab language server.
Install
:CocInstall coc-texlab
Requirements
- A TeX distribution. All distributions that are based on TeX Live or MikTeX are supported.
- On Windows, you will need to install Microsoft Visual C++ Redistributable for Visual Studio 2015.
More info in TexLab Docs
Configuration
latex.build.executable: path to a LaTeX build tool, defaults tolatexmklatex.build.args: additional arguments passed to build toollatex.build.onSave: build after saving a file, defaults tofalselatex.forwardSearch.executable: path to a PDF previewer that supports SyncTeX, defaultsnulllatex.forwardSearch.args: additional arguments passed to the previewer, defaults[]latex.lint.onSave: lint after saving a file, defaults totruelatex.lint.onChange: lint after changing a file, defaults tofalse
Commands
latex.Build: build current filelatex.BuildCancel: cancel all running buildslatex.ForwardSearch: performs a forward search from the current filelatex.UpdateLanguageServer: upgrade TexLab Server to latest version
License
MIT