43 releases (8 stable)

new 1.1.7 Nov 19, 2024
1.1.5 Oct 19, 2024
1.0.31-alpha Jul 25, 2024
1.0.26-alpha Mar 26, 2024
0.0.26 Nov 23, 2022

#704 in Magic Beans

Download history 281/week @ 2024-07-29 7/week @ 2024-08-12 15/week @ 2024-08-26 172/week @ 2024-09-02 337/week @ 2024-09-09 214/week @ 2024-09-16 107/week @ 2024-09-23 219/week @ 2024-09-30 23/week @ 2024-10-07 178/week @ 2024-10-14 46/week @ 2024-10-21 5/week @ 2024-10-28 58/week @ 2024-11-04 128/week @ 2024-11-11

278 downloads per month
Used in aiken

Apache-2.0

2.5MB
57K SLoC

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

Dependencies

~32–49MB
~874K SLoC