Skip to main content

Hyuga - Yet Another Hy Language Server

Project description

Hyuga - Yet Another Hy Language Server

PyPI version

Forked from hy-language-server.

Verified-working Hy version: 0.24.0

Feature

  • textDocument/did{Open,Change}
  • textDocument/completion
    • Display a list of all modules installed in your system, including classes/functions in the currently open source. (Plain Python symbols are also included.)
  • textDocument/definition
    • Jump to the definition. (Currently, this refers to hy-source only.)
  • textDocument/hover

Screenshots

Completion

Hyuga sample movie: completion on neovim Hyuga sample movie: completion on vscode

Jump to definition

Hyuga sample movie: jump-to-definition on neovim Hyuga sample movie: jump-to-definition on vscode

Install

plain install

pip3 install hyuga

neovim(nvim) + vim-lsp + vim-lsp-settings

Note: Currently vim-lsp-settings doesn't have installer for Hyuga. You can test with my vim-lsp-settings branch.

Sample for dein:

call dein#add('sakuraiyuta/vim-lsp-settings', {'rev': 'add-lang/hyuga'})

And open *.hy file with filetype=hy, then run :LspInstallServer

Visual Studio Code(VSCode)

  • Install hyuga to your python environment. (Refer to the Plain install section for details.)
  • In VSCode, open Extensions view, search for hyuga, and install Hyuga VSCode Client.

Development

Setup

  • Install poetry.
  • Clone this project: git clone https://github.com/sakuraiyuta/hyuga.git
  • In project directory, execute poetry install.

Test

poetry run pytest tests

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

hyuga-0.1.5.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

hyuga-0.1.5-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

Supported by

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