1 stable release

2.1.5 May 24, 2023

#10 in #circom

Download history 18/week @ 2024-02-19 17/week @ 2024-02-26 5/week @ 2024-03-04 11/week @ 2024-03-11 2/week @ 2024-03-18 10/week @ 2024-03-25 34/week @ 2024-04-01

58 downloads per month
Used in 3 crates

GPL-3.0 license

115KB
3K SLoC

circom-lsp

A language server protocol implementation for Circom

Installation

Installation through Cargo:

cargo install circom-lsp

There is also an accommodating VSCode extension under the name: circom-lsp

Code for neovim + https://github.com/VonHeikemen/lsp-zero.nvim setup:

local lsp = require('lsp-zero').preset('recommended')

lsp.new_server({
    name = 'circom-lsp',
    cmd = { 'circom-lsp' },
    filetypes = { 'circom' },
    root_dir = function()
        return lsp.dir.find_first({ 'package.json' }) or vim.api.nvim_buf_get_name(0)
    end,
})

Features

  • Diagnostics
  • Hover
  • Go To Definition

Dependencies

~4–6MB
~112K SLoC