Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

872 B
Raw Blame

title: Env description: "Configure Env language support in Zed, including file type detection and highlighting."

Env

Env support is available natively in Zed.

Zed recognizes .env and .env.* files as Env. Files named .envrc are Shell Script, because direnv executes them as shell.

Configuration

Env files are highlighted but no language server is started for them. To run shell tooling on them, map them to Shell Script in your Zed settings.json:

  "file_types": {
    "Shell Script": [".env", ".env.*"]
  },

To recognize other file names as Env files:

  "file_types": {
    "Env": ["*.dotenv"]
  },

See also: