https://github.com/ericglau/sublime-reach
Reach language support in Sublime Text
https://github.com/ericglau/sublime-reach
Last synced: over 1 year ago
JSON representation
Reach language support in Sublime Text
- Host: GitHub
- URL: https://github.com/ericglau/sublime-reach
- Owner: ericglau
- Created: 2021-03-03T05:39:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-11T05:10:51.000Z (over 5 years ago)
- Last Synced: 2025-02-09T02:15:37.327Z (over 1 year ago)
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sublime Reach
Language Support for [Reach](https://reach.sh/) in Sublime Text.
---
## Installation
1. Install the [LSP package](https://github.com/sublimelsp/LSP) for Sublime Text.
2. Install the [Reach IDE package](https://github.com/chrisnevers/reach-ide-sublime) for Sublime Text.
3. Download the latest reach-ls-*.zip file from https://github.com/ericglau/reach-multi-editor/releases and unzip it.
4. In Sublime Text, go to the **Preferences** menu → **Package Settings** → **LSP** → **Settings**. This will open the LSP package settings.
5. In _LSP.sublime-settings — User_, add the configuration for the Reach language server:
```
// Settings in here override those in "LSP/LSP.sublime-settings"
{
"clients": {
"reach-language-server": {
"enabled": true,
"command": [
"node",
"/Users/eric/reach-ls-27d1fc1/out/server.js",
"--stdio"
],
"languageId": "Reach",
"syntaxes": ["Packages/Reach IDE/Reach.sublime-syntax"],
"scopes": ["source.rsh"],
}
},
"log_debug": true,
"log_stderr": true
}
```
6. Change _/Users/eric/reach-ls-27d1fc1/out/server.js_ to the real location of the `out/server.js` file in the directory that you unzipped to in step 3. It **must** be an absolute path.
7. Restart Sublime.
---
## Usage
- Compile errors: automatically highlighted
- Quick Fix: hover over a compile error, click on Code Actions, and choose a suggested replacement
- Hover Definitions: put cursor over any Reach statement
