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

LSP

by tomv564 ST3

Language Server Protocol support for Sublime Text 3

Details

Installs

  • Total 6K
  • Win 2K
  • OS X 3K
  • Linux 2K
Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28
Windows 2 9 5 9 12 14 15 5 14 7 5 2 12 6 5 9 10 7 2 3 11 9 6 5 6 7 8 9 7 8 6 4 2 7 7 9 7 8 3 9 4 10 7 11 7 1
OS X 3 13 12 13 7 20 9 7 13 9 9 2 4 15 8 12 10 4 7 5 11 8 10 7 7 12 7 22 19 11 8 4 2 9 12 11 11 10 4 4 10 6 8 7 15 8
Linux 3 12 8 9 15 9 19 6 8 5 7 6 8 4 7 8 5 6 5 5 6 10 9 8 7 1 3 9 14 9 12 3 3 7 9 12 8 7 8 5 7 9 5 9 5 1

Readme

Source
raw.​githubusercontent.​com

LSP

license Join the chat at https://gitter.im/SublimeLSP/Lobby

Gives Sublime Text 3 rich editing features for languages with Language Server Protocol support.

Tested against language servers for javascript, typescript, python, php, java, go, c/c++ (clangd), scala (dotty), julia, rust, reason.

See Language Server Protocol for available implementations.

Features

Completions with snippet support.

Navigate code with Go to Symbol Definition and Find Symbol References

Inline documentation from Hover and Signature Help popups

hover screenshot

As-you-type diagnostics with support for code fixes (F4 to select, super+. to trigger actions)

diagnostics screenshot

Installing

Normal installation: Install the LSP package through Package Control in Sublime Text.

To run latest master: 1. Clone this repository into your Packages directory 2. Run Package Control: Satisfy Dependencies in Sublime

Configuration

  1. Install a language server for a language of your choice
  2. Run LSP: Enable Language Server from the Command Palette to enable your server.
    • A configuration can be added under clients in Preferences: LSP Settings
  3. Open a document supported by this language server.
  4. LSP should report the language server starting in the status bar.

Documentation is available at LSP.readthedocs.io or in the docs directory

Troubleshooting

Enable the log_debug setting, restart Sublime and open the console. See the Troubleshooting guide for tips and known limitations.

Have you added multiple folders to your Sublime workspace? LSP may not handle your second folder as expected, see this issue for more details.