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 325
  • Win 99
  • Mac 97
  • Linux 129
May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 1 1 0 0 0 1 1 2 0 1 0 1 1 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0
Linux 0 0 0 0 2 1 0 2 0 2 1 1 0 0 0 0 1 0 0 0 0 0 2 1 0 0 0 0 0 1 1 1 0 1 1 1 2 0 0 1 0 0 0 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.