Skip to content

Better document vhdl_ls.toml #414

@werdahias

Description

@werdahias

It would be great if vhdl_ls had better documentation, especially regarding the setup with vhdl_ls.toml.

Right now with neovim 0.11 I have the following:

cat vhdl_ls.toml                                                                                          
standard = "2008"
[libraries]
lib1.files = [ "./test.vhdl"]

test.vhdl is in the same folder as vhdl_ls.toml.

In neovim 0.11 I configured it like this:

return {
	cmd = { "vhdl_ls", "-l" ,"/usr/lib/ghdl/src" },
    root_markers = vim.fs.dirname(
	vim.fs.find({'*.vhl', '*.vhdl'}, {upward = true})[1]
	),
    filetypes = { 'vhdl' },
}

However, startup fails:

[WARN][2025-10-27 10:17:36] ...lsp/handlers.lua:564	"Opening file /home/werdahias/test.vhdl that is not part of the project"
[START][2025-10-27 10:18:00] LSP logging initiated
[ERROR][2025-10-27 10:18:00] ...lsp/handlers.lua:562	"Cannot load workspace: Initialize request is missing rootUri parameter."
[ERROR][2025-10-27 10:18:00] ...lsp/handlers.lua:562	"Error while loading Installation configuration file: No such file or directory (os error 2) "
[ERROR][2025-10-27 10:18:00] ...lsp/handlers.lua:562	"Error loading vhdl_ls.toml: Workspace root configuration file not set"

I couldn't find any documentation for the rootURI parameter; I think an example vhdl_ls.toml or a manpage would help a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions