Skip to content

nusnewob/caddyfile-zed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caddyfile Support for Zed Editor

This extension adds basic support for Caddyfile syntax highlighting in the Zed editor.

Features

  • Syntax Highlighting: Provides syntax highlighting for Caddyfile configurations in Zed.

Installation

  1. Clone the Repository:

    git clone https://github.com/nusnewob/caddyfile-zed.git
  2. Install the Extension:

    Follow Zed's guidelines to install the extension into your editor.

  3. 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", "-"]
          }
        }
      }
    }

Acknowledgments

This extension utilizes the tree-sitter-caddyfile for parsing Caddyfile. Special thanks to the contributors of that project for their work.

Releases

No releases published

Packages

No packages published