A very featureless VSG to lsp bridge
Go to file
Dandaedre a12912a8a8 Adds -ap to process all lints 2024-11-21 08:33:33 -06:00
src Adds -ap to process all lints 2024-11-21 08:33:33 -06:00
vhdl Adds -ap to process all lints 2024-11-21 08:33:33 -06:00
.gitignore First working draft 2024-11-21 01:32:43 -06:00
Cargo.toml Cleanups all clippy 2024-11-21 07:28:02 -06:00
LICENSE Initial commit 2024-11-20 16:45:58 +01:00
README.md Cleanups all clippy 2024-11-21 07:28:02 -06:00

README.md

vsg_bridge_ls

A very featureless VSG to lsp bridge, allowing to use vsg as a linting lsp instead of an external diagnostic tool.

Install

Installing VSG

Install vsg either via pip on pip in your venv:

python -m venv venv
source venv/activate (or activate.fish if you use fish etc...)
pip install vsg

Please note that if you decide to use a venv, you will need to activate your venv every time.

Installing vsg_bridge_ls

cargo install --git https://proxy.dandaedre.com/gitea/Dandaedre/vsg_bridge_ls.git

Adding the lsp bridge to your editor

Helix

Add the following to your ~/.config/helix/language.toml (create this file if it doesn't exist)

[language-server.vsg_bridge_ls]
command = "vsg_bridge_ls"
args = ["-c", "vhdl/config.yaml"] # Optionnal config, note that the path is relative to your project

[[language]]
name = "vhdl"
scope = "source.vhdl"
file-types = ["vhd", "vhdl"]
comment-token = "--"
language-servers = [ "vhdl_ls", "vsg_bridge_ls" ]
indent = { tab-width = 2, unit = "  " }
injection-regex = "vhdl"
 

Others

Check your editor documentation on how to add a lsp. Untested.

Developper Documentation