Hi!
As I understand it, the whole point of Caddyfile is to make it easier to do configurations. I think Caddy can thank its Caddyfile format for a lot of its popularity since it is so approachable.
However, the one thing I miss is a proper language server.
I use language servers all the time, not only coding but also things like writing systemd units, Containerfiles etc. It reduces the amount of errors but even more so it makes it very easy to (re-)configure things that you may not work with on a daily basis. It really helps with discoverability for the average joe.
I found GitHub - caddyserver/vscode-caddyfile: Rich Caddyfile support for Visual Studio Code which i think contains a language server but it seems to only be packaged for vscode (personally I use neovim with mason, and there are other IDEs). I don’t know how official it is either.
I have considered moving to JSON and leveraging the JSON Schema (together with a JSON language server) but the JSON format is so much more verbose that it defeats the purpose of making things easier.
Can we please have a well-maintained Caddyfile language server (usable by all editors)?