simplicityhl-lsp-0.2.0 is not a library.
SimplicityHL LSP
Language Server for SimplicityHL language.
Features
- Basic diagnostic for SimplicityHL code

- Completions of built-ins, jets and functions

- Hover for built-ins, jets and functions, with support of documentation

- Go to definition for functions

Installation
Clone this repository and install using Cargo:
Integration with editors
Neovim
LSP
-
Install
simplicityhl-lspto yourPATH. -
Include this Lua snippet to your Neovim config:
vim..
vim.. =
vim..
- Open
.simffile and check that LSP is active ("attached"):
:checkhealth vim.lsp
Tree-sitter (Highlighting)
Currently, the Language Server does not provide any syntax highlighting on its own, but you can install tree-sitter for SimplicityHL:
-
Set up the
nvim-treesitterplugin. -
Include this Lua snippet in your Neovim config to register parser:
vim..
vim...
vim..
- Restart Neovim and run:
:TSInstall simplicityhl
If everything is working correctly, you should see syntax highlighting in .simf files.
Note: This method is compatible only with nvim-treesitter v0.10 or newer.