Package Control

The Sublime Text package directory, resurrected.

LSP-epher

A calculator language where every statement's answer appears inline, for Sublime Text via the LSP package

SepAugJulJunMayAprMarFebJan Dec2025 NovOct 2026-W42 | installs: 2 | removals: 1 | upgrades: 0 2026-W42 | installs: 2 | removals: 1 | upgrades: 0 2026-W42 | installs: 2 | removals: 1 | upgrades: 0 2026-W41 | installs: 1 | removals: 0 | upgrades: 0 2026-W41 | installs: 1 | removals: 0 | upgrades: 0 2026-W41 | installs: 1 | removals: 0 | upgrades: 0 024 WeeklyInstalls 024 WeeklyUpgrades 2026-10-12 | upgrades: 0 | 0 on that day 0.5.85 / 0.5.84 / ... 0.5.85 / 0.5.84 / 0.5.83 2026-10-11 | upgrades: 0 | 0 on that day 0.5.82 / 0.5.81 / ... 0.5.82 / 0.5.81 / 0.5.80 2026-10-10 | upgrades: 0 | 0 on that day 0.5.79 / 0.5.77 / ... 0.5.79 / 0.5.77 / 0.5.76 / 0.5.75 / 0.5.74 / 0.5.73 2026-W40 0.5.72 / 0.5.71 / ... 0.5.72 / 0.5.71 / 0.5.70 / 0.5.69 / 0.5.68 / 0.5.67 / 0.5.65 / 0.5.64 / 0.5.63 / 0.5.62 / 0.5.61 / 0.5.60 / 0.5.59 / 0.5.58 / 0.5.57
Installations: recent average 1 per week, 3 in total
Installations minus removals
Upgrades

Links

Versions

0.5.85 (ST4132+) ·
2026-10-12 18:01

More

epher for Sublime Text

epher is a calculator language: you write ordinary math, with units that convert, and every statement's answer appears inline, right next to the line that produced it. The package is called LSP-epher because the LSP package resolves its client configuration by that name.

Download the epher calculator, and a large selection of ready-made scripts from epher.org.

A script computing Earth's circumference, the discriminant of a quadratic, and a speed converted from miles to kilometers per hour, each line's answer shown inline

The demo script typed live, each line's answer appearing as it completes

Type a formula and the answer is already there. No runnable repl in a side panel, no print statements: the editor is the calculator.

What you get

Hovering a defined name shows its signature and definition

Completion offers a catalog name with its documentation

The results view after a run, with the per-statement transcript and the graph path

Install

From Package Control, once the package is listed:

  1. Open the command palette and run Package Control: Install Package.
  2. Search for LSP and install it. This is a real manual step: Package Control has no way for one package to install another (dependencies there are Python libraries, not packages), so LSP is never pulled in for you.
  3. Search for LSP-epher and install it.

On first use the package fetches the epher-lsp server for your platform into its Package Storage and starts it for epher views; there is nothing else to install. See "The server binary" below for the manual route, should you prefer to manage it yourself.

From this repository, today: copy or symlink this directory into your Packages folder under the name LSP-epher (a direct child of Packages, not inside User):

Then install the LSP package from Package Control. Open any .epher file: Sublime applies the syntax automatically (the grammar carries fileTypes), and the LSP package reads LSP-epher.sublime-settings, downloads the server on first start, and attaches it to epher views.

The server binary

By default the package manages the binary itself: on the first server start it downloads epher-lsp for your platform from the matching epher release into its Package Storage, unpacks it, and points the client at that copy. When the package updates, the next start fetches the matching server. The download is made by the plugin, not a browser, so it carries no quarantine mark and macOS opens it without asking; this is the whole reason the default route exists.

To manage the binary yourself instead, set command in LSP-epher.sublime-settings (Packages/User or the package file): the package then never downloads anything and starts what you configured.

{ "command": ["/usr/local/bin/epher-lsp"] }

The manual route, for a PATH install:

# linux x86_64 (arm64 and macos-aarch64 analogous)
curl -LO https://github.com/upyesp/epher/releases/latest/download/epher-lsp-linux-x86_64.gz
gunzip epher-lsp-linux-x86_64.gz && mv epher-lsp-linux-x86_64 ~/.local/bin/epher-lsp
chmod +x ~/.local/bin/epher-lsp

# windows (powershell): epher-lsp-windows-x86_64.zip -> epher-lsp.exe

A file saved by curl runs anywhere; the same file saved by a browser on macOS carries a quarantine mark that Gatekeeper enforces, and an unsigned binary is refused with "Apple could not verify". If that happened, unblock the file once:

xattr -d com.apple.quarantine ~/.local/bin/epher-lsp

or use System Settings, Privacy & Security, "Allow Anyway". The package's own download never hits this.

Everything runs on your machine after that one download.

Settings

The LSP package ships inlay hints off, so the inline answers need one setting in Packages/User/LSP.sublime-settings:

{ "show_inlay_hints": true }

If the answers still do not appear, run LSP: Toggle Inlay Hints once from the command palette in that window. The per-window flag is what drives the phantom set in current LSP builds.

Semantic highlighting

Semantic-token coloring is also off by default. In the same file, add:

{ "semantic_highlighting": true }

LSP adds the rule that semantic tokens need to the built-in color schemes itself. With a custom color scheme, add it to that scheme (UI: Customize Color Scheme) or the tokens render with the background they already have:

{
  "rules": [
    { "scope": "meta.semantic-token", "background": "#00000101" }
  ]
}

Two known LSP limitations apply: with highlight_line enabled there are visible artifacts on highlighted lines, and bold or italic font styles do not apply to semantic regions.

Suggested keybinding

This package deliberately ships no keybinding, so nothing of yours gets shadowed. To run a script from the keyboard, open Preferences: Key Bindings from the Command Palette and add:

[
  {
    "keys": ["ctrl+alt+r"],
    "command": "lsp_epher_run",
    "context": [{ "key": "selector", "operand": "source.epher" }]
  }
]

ctrl+alt+r is unbound in Sublime Text 4's default keymaps on Linux, macOS and Windows.

Requirements

Data and telemetry

None. Everything evaluates on your machine.

License

MIT

Results

Packages