8 releases

✓ Uses Rust 2018 edition

new 0.1.7 Dec 5, 2019
0.1.6 Dec 3, 2019
0.1.4 Nov 26, 2019

#121 in Development tools

Download history 20/week @ 2019-11-13 71/week @ 2019-11-20 65/week @ 2019-11-27

53 downloads per month

MIT license

150KB
372 lines

svls

SystemVerilog language server

Actions Status Snap Status

Crates.io svlint

test

Feature

Installation

Download binary

Download from release page, and extract to the directory in PATH.

snapcraft

You can install from snapcraft

sudo snap install svls

Cargo

You can install by cargo.

cargo install svls

Configuration

Language server

svls uses .svls.toml at the root of repository. The example of .svls.toml is below:

[verilog]
include_paths = ["src/header"]

[option]
linter = true

[verilog] section

include_paths is include paths from the root of repository.

[option] section

linter shows whether linter feature is enabled.

Linter

Linter uses .svlint.toml at the root of repository. If .svlint.toml can't be used, all lint rules are enabled. Please see svlint#configuration for the detailed information.

Usage

Visual Studio Code

Please install svls-vscode extension from marketplace.

Vim/Neovim with LanguageClient-neovim

let g:LanguageClient_serverCommands = {
    \ 'systemverilog': ['svls'],
    \ }

Vim/Neovim with vim-lsp

if executable('svls')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'svls',
        \ 'cmd': {server_info->['svls']},
        \ 'whitelist': ['systemverilog'],
        \ })
endif

Dependencies

~12MB
~263K SLoC