ternlang-lsp 1.2.5

LSP 3.17 language server for ternlang — hover docs, code completion, and live diagnostics for .tern files.
ternlang-lsp-1.2.5 is not a library.

ternlang-lsp

LSP 3.17 language server for Ternlang. Provides hover docs, code completion, and live parse diagnostics for .tern files in any LSP-capable editor.

Transport

JSON-RPC 2.0 over stdio — the standard MCP/LSP pattern.

Features

  • Hover — trit type info and keyword documentation on cursor
  • Diagnostics — parse errors highlighted in real time as you type
  • Completion — ternlang keywords, trit literals, and stdlib identifiers
  • Go-to-definition — jump to function and variable declarations

Editor setup

VS Code — install the Ternlang extension (see ternlang-root/integrations/vscode/), which auto-configures the server.

Neovim / other — point your LSP client at ternlang-lsp:

require('lspconfig').ternlang_lsp.setup {
  cmd = { 'ternlang-lsp' },
  filetypes = { 'tern' },
}

Install

cargo install ternlang-lsp

License

LGPL-3.0-or-later. See LICENSE.