This extension adds basic support for Caddyfile syntax highlighting in the Zed editor.
- Syntax Highlighting: Provides syntax highlighting for Caddyfile configurations in Zed.
-
Clone the Repository:
git clone https://github.com/nusnewob/caddyfile-zed.git
-
Install the Extension:
Follow Zed's guidelines to install the extension into your editor.
-
Configure:
Update your Zed config file.
"file_types": { "Caddyfile": ["Caddyfile*", "*.caddyfile"] }, "languages": { "Caddyfile": { "format_on_save": "on", "tab_size": 2, "formatter": { "external": { "command": "caddy", "arguments": ["fmt", "-c", "-"] // for Caddy docker container // "command": "docker", // "arguments": ["run", "--rm", "-i", "caddy", "caddy", "fmt", "-c", "-"] } } } }
This extension utilizes the tree-sitter-caddyfile for parsing Caddyfile. Special thanks to the contributors of that project for their work.