/hyuga

Hyuga - Yet Another Hy Language Server

Primary LanguageHyMIT LicenseMIT

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
    • Show candidates all modules installed in your system, classes/functions in opening source. (plain Python-symbols included)
  • textDocument/definition
    • Jump to definition. (currently refered hy-source only)
  • textDocument/hover

Screenshots

Completion

Hyuga sample movie: completion

Jump to definition

Hyuga sample movie: jump-to-definition

Install

plain install

pip3 install hyuga

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

TODO: implement

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