VHDL-TS TOML generator
I use VHDL-LS as my VHDL language server for lsp mode. This combined with vhdl major mode, and other packages such as vhdl-ext, provides me with a very robust IDE within Emacs for my VHDL projects.
A requirement of the language server is to have a vhdl_ls.toml
file which includes all sources used on a project. Even with glob patterns, it can get annoying when a new source/folder/module needs to be added; the toml
file must be updated accordingly and one can easily forget to add that one folder or file.
To address this, I wrote a VHDL-LS TOML generator to assist in generate and maintain these toml files. It is a simple elisp script
that should be added to a folder in Emacs’ load-path and then, in the init file, just add the line (require 'hdl-toml)
. It can create projects, add, update or delete sources and provides some customization, namely the usage of absolute of relative paths, glob patterns for sources and which vhdl standard do use.