ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-Tex​Lab

by sublimelsp ST4

LaTeX support for Sublime's LSP plugin provided through latex-lsp/texlab.

Details

Installs

  • Total 184
  • Win 57
  • Mac 56
  • Linux 71
Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10
Windows 0 0 0 0 1 0 0 0 0 1 1 0 2 0 2 1 1 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
Mac 0 4 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 2 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 1 2 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-TexLab

LaTeX support for Sublime's LSP plugin provided through latex-lsp/texlab.

Note that this plugin requires ST >= 4070 and only supports x64 system.

Installation

  1. Install LSP and LSP-TexLab via Package Control.
  2. (Optional) Install ChkTex for linting.
  3. Restart Sublime.

For Apple M1 Users

There is no official pre-built server binary for Apple M1 (arm64-osx). So if you want to use this plugin, you would have to build texlab by yourself.

# build texlab with rust toolchain
cargo install --git https://github.com/latex-lsp/texlab.git --locked

And then modify the "command" in LSP-TexLab settings:

{
    // if the built binary is in PATH, you can simply use "texlab",
    // otherwise, you would have to specify a absolute path to the texlab binary.
    "command": ["texlab"],
}

Configuration

There are some ways to configure the package and the language server.

  • From Preferences > Package Settings > LSP > Servers > LSP-TexLab
  • From the command palette Preferences: LSP-TexLab Settings

Sublime Commands

Sublime Command Description
lsp_texlab_forward_search Performs a forward search from the first cursor position
lsp_texlab_build Build the current file

For Plugin Developer

The targeted version of texlab is defined in const.py.

# @see https://github.com/latex-lsp/texlab/releases
TEXLAB_VERSION = "v2.2.0"

If that version is not found on the machine, this plugin will try to download it.