Skip to content

Commit

Permalink
Add elixir-ls support (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcrn authored and tomv564 committed Nov 29, 2019
1 parent d7fb292 commit 2980d37
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions LSP.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,19 @@
"Packages/Dart/Dart.tmLanguage"
]
},
"elixir-ls": {
"command": [
// Specify path to language_server.sh from https://github.com/elixir-lsp/elixir-ls here
// "/home/someUser/somePlace/elixir-ls/release/language_server.sh"
],
"languageId": "elixir",
"scopes": ["source.elixir"],
"settings": {
},
"syntaxes": [
"Packages/Elixir/Syntaxes/Elixir.tmLanguage",
]
},
"flow":
{
"command": ["flow", "lsp"],
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Documentation is available at [LSP.readthedocs.io](https://LSP.readthedocs.io).
* [D](https://lsp.readthedocs.io/en/latest/#d)
* [Dart](https://lsp.readthedocs.io/en/latest/#dart)
* [Elm](https://lsp.readthedocs.io/en/latest/#elm)
* [Elixir](https://lsp.readthedocs.io/en/latest/#elixir)
* [Flow (JavaScript)](https://lsp.readthedocs.io/en/latest/#flow)
* [Go](https://lsp.readthedocs.io/en/latest/#go)
* [HTML](https://lsp.readthedocs.io/en/latest/#html)
Expand Down
20 changes: 20 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,26 @@ For more details see this [issue](https://github.com/PowerShell/PowerShellEditor
}
```

### Elixir

1. Download the prebuilt binaries or compile [elixir-ls](https://github.com/elixir-lsp/elixir-ls). This will get you a folder containing `language_server.sh` among other things
2. Download the official [Elixir package](https://packagecontrol.io/packages/Elixir) for syntax definitions
3. Update the elixir-ls configuration to point to your `language_server.sh`

```
"elixir-ls": {
"command": ["/home/someUser/somePlace/elixir-ls/release/language_server.sh"],
"enabled": true,
"languageId": "elixir",
"scopes": ["source.elixir"],
"settings": {
},
"syntaxes": [
"Packages/Elixir/Syntaxes/Elixir.tmLanguage",
]
},
```

### XML

Discussed in [this issue](https://github.com/tomv564/LSP/issues/578)
Expand Down

0 comments on commit 2980d37

Please sign in to comment.