-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3213 from unisonweb/cp/lsp
LSP Mk I
- Loading branch information
Showing
24 changed files
with
1,131 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Unison Language Server | ||
|
||
[![asciicast](https://asciinema.org/a/Kwa7NscffA3R8KCHxq1OavRm0.svg)](https://asciinema.org/a/Kwa7NscffA3R8KCHxq1OavRm0) | ||
|
||
## Overview | ||
|
||
Supported features: | ||
|
||
* Show type on hover | ||
* Inline type and parser error messages | ||
* NO autocomplete yet, but soon. | ||
|
||
Notes: | ||
|
||
* The LSP listens for changes from the UCM it's linked to, so name resolution is dependent on your current UCM path. | ||
|
||
## Installation and setup | ||
|
||
Currently the only supported configuration is to connect to the LSP via a specified port, not all LSP implementations support this configuration. | ||
|
||
By default the LSP is hosted at `127.0.0.1:5757`, but you can change the port using `UNISON_LSP_PORT=1234`. | ||
|
||
|
||
### NeoVim | ||
|
||
Configuration for [coc-nvim](https://github.com/neoclide/coc.nvim), enter the following in the relevant place of your CocConfig | ||
|
||
``` | ||
"languageserver": { | ||
"unison": { | ||
"filetypes": ["unison"], | ||
"host": "127.0.0.1", | ||
"port": 5757 | ||
} | ||
} | ||
``` | ||
|
||
Note that you'll need to start UCM _before_ you try connecting to it in your editor or your editor might give up. | ||
|
||
### VSCode | ||
|
||
VSCode doesn't allow customizing LSP implementations without an extension, | ||
Hang tight, one will be available soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.