The solution seems to be adding a .helix/config.toml
file to the root of my package
# .helix/config.toml
[editor]
workspace-lsp-roots = ["examples"]
and then starting helix in the examples
folder. This results in the LS starting with the examples
folder as its “LSP root”.
Considering this I was wondering if I would have to use a similar solution for a potential test
folder but to my surprise the LS works in this case even if the “LSP root” in helix remains the base directory of the package.