aiken-lsp

Crates.ioaiken-lsp
lib.rsaiken-lsp
version1.1.7
sourcesrc
created_at2022-11-14 23:05:36.303262
updated_at2024-11-19 14:57:36.48533
descriptionCardano smart contract language and toolchain
homepagehttps://github.com/aiken-lang/aiken
repositoryhttps://github.com/aiken-lang/aiken
max_upload_size
id715253
size61,450
maintainers (github:aiken-lang:maintainers)

documentation

README

Aiken Language Server Protocol (LSP)

The aiken command-line comes built-in with a Language Server implementing (part of) the Language Server Protocol.

Getting Started

General

Regardless of your IDE, you'll likely need the following information to configure your language client:

  • command: aiken lsp

    Note The command is hidden from the command-line help usage

  • root pattern: aiken.toml

  • filetype: aiken (.ak)

VsCode

Simply install the VSCode Aiken extension from the official marketplace.

NeoVim

If you're using NeoVim and using nvim-lspconfig then there's almost nothing to do as Aiken is directly supported. Simply follow the official instructions

Supported Capabilities

  • Document syncing and on-the-fly compilation
  • Document formatting (akin to aiken fmt)
  • Go-to definition
  • Type annotation on hover
  • Code actions providing quickfixes for a variety of errors:
    • aiken::check::unknown::variable
    • aiken::check::unknown::type
    • aiken::check::unknown::type_constructor
    • aiken::check::unknown::module
Commit count: 3167

cargo fmt