Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 1.94 KB

editors.md

File metadata and controls

84 lines (61 loc) · 1.94 KB

Prerequisites

First of all, you need to make your text editor ready to work with LSP. Some editors support this protocol internally, others support it via plugins.

Important note

backend - current LSP implementation for Tarantool/Lua (this repo).

Anyway, you need to specify the path for the editor to start the LSP server. The editor will start a new process with the LSP backend, you don't need to start it manually.

If you install the backend via a packet manager, you will get LSP installed and available from the default environment.

# Command for the default LSP backend mode (stdin/stout)
tarantool-lsp server

# Command for the Websocket mode (see README.md)
tarantool-lsp ws

See the Examples section for more details.

Editors

Visual Studio Code

Visual Studio Code implements language client support via an extension library. If you have a working configuration, please contribute it!

Atom-IDE

Atom, like VS Code, implements language client support via an extension library. If you have a working configuration, please contribute it!

Sublime Text 3

Sublime has an LSP plugin. See the Examples section for default configuration.

Emacs

Emacs has a package to create language clients. If you have a working configuration, please contribute it!

Examples

Default Sublime configuration looks like this:

{
	"clients":
	{
		"tarantool-lsp":
		{
			"command":
			[
				"tarantool-lsp",
				"server"
			],
			"enabled": true,
			"languageId": "lua",
			"scopes": [
				"source.lua"
			],
			"syntaxes": [
				"Packages/Lua/Lua.sublime-syntax"
			]
		}
	}
}

For more details, please see the documentation for your editor -- or the editor's LSP plugin.