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.
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.
Visual Studio Code implements language client support via an extension library. If you have a working configuration, please contribute it!
Atom, like VS Code, implements language client support via an extension library. If you have a working configuration, please contribute it!
Sublime has an LSP plugin. See the Examples section for default configuration.
Emacs has a package to create language clients. If you have a working configuration, please contribute it!
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.