You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
# LSP-Server
|
|
|
|
Example language server to demonstrate the language server protocol.
|
|
|
|
To install all needed dependencies and adding a link that can be found inside `$PATH`, please run:
|
|
|
|
``` bash
|
|
npm install
|
|
npm link
|
|
```
|
|
|
|
To run the server use:
|
|
|
|
``` bash
|
|
lsp-server --stdio
|
|
```
|
|
|
|
## Neovim configuration
|
|
|
|
Use the following as starting point to add a custom definition for this language server to neovim:
|
|
|
|
```lua
|
|
configs.replyto_ls = {
|
|
default_config = {
|
|
cmd = { "replyto-ls", "--stdio"};
|
|
autostart = false;
|
|
filetypes = {'text'};
|
|
dynamicRegistration = true;
|
|
single_file_support = true;
|
|
init_options = {
|
|
jvm_args = {},
|
|
os_config = nil,
|
|
};
|
|
},
|
|
}
|
|
|
|
require'lspconfig'.replyto_ls.setup {}
|
|
|
|
```
|
|
|
|
|
|
## Some usfull links
|
|
|
|
- [Language Server Implementations](https://microsoft.github.io/language-server-protocol/implementors/servers/)
|
|
- [Language Server Protocol Specification](https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/)
|
|
- [Using Language Servers to Edit Code in the Eclipse IDE](https://www.eclipse.org/community/eclipse_newsletter/2017/may/article3.php)
|
|
- [LSP tutorial](https://www.toptal.com/javascript/language-server-protocol-tutorial)
|
|
- [Eclipse Language Support for Apache Camel](https://marketplace.eclipse.org/content/language-support-apache-camel)
|