Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Disclaimer: Generated by ChatGPT

Zed Editor Configuration (Fully Explained)

This Markdown document explains all settings in the given Zed editor configuration, including behavior, appearance, AI tools, Git, and language-specific options.


🖋️ Editor Appearance

Inlay Hints

These show helpful inline annotations directly inside your code (like types, parameter names, or computed values).

SettingDescription
enabledEnables all inlay hints globally.
show_other_hintsShows miscellaneous hints not covered by the other categories.
show_parameter_hintsDisplays parameter names in function calls.
show_type_hintsShows inferred variable or return types inline.
show_value_hintsShows computed or constant values inline (like x = 2 + 3 → 5).

Other Appearance Options

SettingDescription
ui_font_sizeFont size for UI elements like tabs and menus.
buffer_font_sizeFont size for the main code buffer (null = use default).
buffer_font_features.caltToggles contextual alternates (ligatures) in fonts. false disables fancy glyphs.
lsp_document_colorsControls how color codes from language servers are shown. "border" shows a colored border.
wrap_guidesAdds a column guide at character position 79 (for line length standards).
show_edit_predictionsEnables or disables inline AI text predictions.

🎨 Theme & Colors

SettingDescription
theme.mode"system" follows OS dark/light mode automatically.
theme.light / theme.darkTheme names for each appearance mode.
experimental.theme_overrides.background.appearanceMakes the background transparent.
syntax.keyword.colorCustom color for syntax keywords.
syntax.function.colorCustom color for function names.

⚙️ Editor Behavior

SettingDescription
autosave.after_delay.millisecondsSaves files automatically 500ms after typing stops.
format_on_saveFormats your code automatically when saving.
restore_on_startupOpens your last session when starting Zed.
show_completions_on_inputDisplays autocomplete suggestions while typing.

🤖 AI & Assistant Features

Agent (Assistant Settings)

SettingDescription
play_sound_when_agent_donePlays a sound when the AI assistant finishes responding.
inline_assistant_modelDefines the provider/model for inline suggestions.
default_modelThe default model for chat or general AI queries.

Both models here use Claude Sonnet 4 by zed.dev.

Edit Predictions

SettingDescription
mode"subtle" = minimal visual hints for predictions.
enabled_in_text_threadsPrevents predictions from appearing inside text threads.
copilot.proxy / proxy_no_verifyOptional GitHub Copilot proxy configuration (disabled here).

Features

SettingDescription
edit_prediction_providerSpecifies "zed" as the built-in AI provider for predictions.

🧩 Git Integration

SettingDescription
git.inline_blame.enabledToggles inline Git blame annotations showing commit info beside each line.

🐍 Python Language Settings

SettingDescription
formatter.external.commandUses the black formatter for Python code.
formatter.external.argumentsSends code via stdin ("-") and disables quote normalization.
format_on_saveAutomatically runs black when saving Python files.

🦀 Rust Language Settings

SettingDescription
formatter.external.commandUses rustfmt for Rust code formatting.
formatter.external.argumentsNo additional flags (default rustfmt behavior).
format_on_saveAutomatically formats Rust code when saving.

🧠 LSP (Language Server Protocol) for Rust Analyzer

These settings configure how Rust Analyzer behaves — the engine powering autocompletion, linting, and inline hints for Rust.

SettingDescription
check.commandUses cargo clippy instead of cargo check for stricter linting.
imports.merge.globPrevents combining imports into use module::*.
imports.granularity.enforceEnsures consistent import formatting.
imports.granularity.groupGroups imports by module hierarchy.
inlayHints.maxLengthNo maximum character length for displayed hints.
lifetimeElisionHints.enable"skip_trivial" shows lifetime hints only when they’re non-obvious.
lifetimeElisionHints.useParameterNamesDisplays lifetimes using parameter names for clarity.
closureReturnTypeHints.enable"always" shows return types for closures inline.

🔒 Privacy & Telemetry

SettingDescription
telemetry.diagnosticsDisables sending of diagnostics or crash data.
telemetry.metricsDisables telemetry and usage analytics.

✅ Summary

This configuration provides:

  • A feature-rich, hint-heavy editing experience with inlay hints enabled.
  • Automatic formatting on save for Python (Black) and Rust (Rustfmt).
  • Integrated AI assistance with Zed + Claude Sonnet models.
  • Transparent, modern themes with color customizations.
  • Privacy-conscious settings (no telemetry).
  • Smart Rust configuration via Clippy and Rust Analyzer.

About

My Zed setup

Resources

Stars

56 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors