Skip to main content

Language Server Protocol implementation for the Ivy formal specification language

Project description

ivy-lsp

Language Server Protocol (LSP) implementation for the Ivy formal specification language.

Features

  • Document Symbols -- outline view of types, objects, actions, modules, properties
  • Workspace Symbols -- search symbols across all .ivy files
  • Go-to-Definition -- jump to symbol definitions across include boundaries
  • Find References -- locate all usages of a symbol in the workspace
  • Completion -- context-aware suggestions (after ., include, keywords, symbols in scope)
  • Hover -- type signatures and symbol details on mouse hover
  • Diagnostics -- parse errors, missing #lang directive, unresolved includes, unmatched braces

Installation

pip install ivy-lsp

Or as an optional extra of panther_ms_ivy:

pip install panther_ms_ivy[lsp]

Usage

Start the language server over stdio:

python -m ivy_lsp

Or via the installed console script:

ivy_lsp

With VS Code

Install the Ivy Language extension, which automatically starts ivy-lsp for .ivy files.

With Serena

Add ivy to the languages list in .serena/project.yml:

languages:
  - python
  - ivy

Requirements

  • Python 3.10+
  • panther_ms_ivy (Ivy parser and compiler)
  • pygls (Python LSP framework)

Development

git clone https://github.com/ElNiak/ivy-lsp.git
cd ivy-lsp
pip install -e ".[dev]"
pytest tests/ -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivy_lsp-0.5.0.tar.gz (90.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ivy_lsp-0.5.0-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file ivy_lsp-0.5.0.tar.gz.

File metadata

  • Download URL: ivy_lsp-0.5.0.tar.gz
  • Upload date:
  • Size: 90.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivy_lsp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1c8d1c06e891d6d627422bd1c0cdacdc3fa51bd2e330d17762256b6dfdc45939
MD5 fe7742ab729d56b72304e83e434643fa
BLAKE2b-256 cb0d49972650bf1a0c668f20414fe9fc6742b5c7e096bc27c64fcb8471ec2317

See more details on using hashes here.

File details

Details for the file ivy_lsp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ivy_lsp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivy_lsp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc5b7876e50a67e52fb3d1955052fa8a2682b58e2f428e5f4980faad2e3f70f
MD5 9c56ec899d48d3651ede0840b4a7b41b
BLAKE2b-256 6b8895936ddbeccdfa41e0bd873d5c812da49943e7e0e35fe3c9cb94d295863d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page