My Zed editor configuration, set up to feel like a JetBrains IDE (CLion / PyCharm / RustRover), with Python, C/C++ and Rust support.
| File | Purpose |
|---|---|
settings.json |
Editor settings: JetBrains base keymap, JetBrains Mono Nerd Font everywhere, Python (ruff + basedpyright), C/C++ (clangd), and Rust (rust-analyzer + clippy) setup |
keymap.json |
Custom shortcuts on top of the JetBrains keymap |
snippets/python.json |
Snippets that insert () after common Python builtins |
- JetBrains-style keymap (
base_keymap: JetBrains) plus my own shortcuts. - All custom
altshortcuts are listed in Alt shortcuts. - Python: ruff format on save, organize imports and fix-all, 80-column ruler.
- C/C++: clangd with clang-tidy, background indexing and
cmake-build-debugas the compile commands directory. - Rust: rust-analyzer with clippy diagnostics, all features and targets, rustfmt via the language server on save, inlay hints, 100-column ruler.
- Toolbar (breadcrumbs and quick-action buttons) hidden for a cleaner editor.
| Key | Action |
|---|---|
alt-1 |
Focus project panel (enter there opens the file in the editor) |
alt-5 |
Focus debug panel |
alt-6 |
Diagnostics |
alt-7 |
Focus outline panel |
alt-9 |
Focus git panel |
alt-c |
Close tab |
alt-d |
Delete line (also ctrl-y) |
alt-e |
Run a task |
alt-j |
Toggle workspace sidebar (threads and projects) |
alt-o |
Open recent projects |
alt-q |
Start debugger |
alt-w |
Toggle terminal |
alt-shift-w |
New terminal |
alt-up / alt-down |
Previous / next symbol |
alt-left / alt-right |
Previous / next tab |
alt-- / alt-= |
Decrease / increase font size |
Also: ctrl-shift-f12 closes all docks, ctrl-f4 closes tab.
Copy the files to Zed's config folder:
- Linux / macOS:
~/.config/zed/ - Windows:
%APPDATA%\Zed\
git clone [email protected]:amiraliverse/zeditor.git
cp zeditor/keymap.json ~/.config/zed/
cp -r zeditor/snippets ~/.config/zed/
# merge settings.json by hand: it is a template, see belowsettings.jsonhas a placeholder database password (CHANGE_ME) in the Postgres context server. Set your own or remove that block.- Install the tools Zed expects:
clangd,clang-format,cmake,ninja,lldb,ruff,rustup(withrust-analyzer,clippy,rustfmt). - Install the "JetBrainsMono Nerd Font" font and the "VSCode Icons" icon theme extension.
- The
Omazedtheme is Omarchy-specific. Changethemeif you are not on Omarchy.