4 releases

0.1.3 Jun 2, 2023
0.1.2 May 26, 2023
0.1.1 May 25, 2023
0.1.0 May 24, 2023

#258 in Text editors

28 downloads per month

GPL-3.0 license

400KB
10K 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

~14–29MB
~451K SLoC