Skip to content

Instantly share code, notes, and snippets.

@didier
Last active May 1, 2024 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save didier/cf0b1bbcc587d91b10d4c11562525b7c to your computer and use it in GitHub Desktop.
Save didier/cf0b1bbcc587d91b10d4c11562525b7c to your computer and use it in GitHub Desktop.
Zed Settings
{
// —— Editor
"vim_mode": false,
"relative_line_numbers": true,
"preferred_line_length": 120,
"tab_size": 4,
"soft_wrap": "editor_width",
"hard_tabs": true,
"base_keymap": "VSCode",
"file_types": {
"CSS": ["postcss", "pcss"],
"JSON": ["json5", ".prettierrc"]
},
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"assistant": {
"version": "1",
"dock": "left",
"provider": {
// I've locally aliased `llama3` to `gpt-3.5-turbo` via Ollama.
"api_url": "http://127.0.0.1:11434/v1",
"default_model": "gpt-3.5-turbo",
"name": "openai"
}
},
// —— Theme
"theme": {
"light": "Quill",
"dark": "Quill",
"mode": "system"
},
"experimental.theme_overrides": {
"background.appearance": "blurred",
"border": "#44403c7d",
"border.variant": "#3631307d",
"border.focused": "#44403c7d",
"border.selected": "#44403c7d",
"border.transparent": "#44403c7d",
"border.disabled": null
},
// —— Font
"buffer_font_family": "CommitMono_Tight",
"buffer_font_size": 16,
"buffer_line_height": {
"custom": 1.9
},
"buffer_font_features": {
"liga": true
},
"ui_font_size": 16,
// —— Terminal
"terminal": {
"dock": "bottom",
"button": false
},
// —— Git
"git": {
"git_gutter": "hide"
},
// —— Interface
"gutter": {
"code_actions": false,
"line_numbers": false
},
"scrollbar": {
"git_diff": false
},
"toolbar": {
"breadcrumbs": false,
"quick_actions": false,
"title": false
},
"tab_bar": {
"show_nav_history_buttons": false
},
"project_panel": { "button": false },
"inlay_hints": {
"enabled": false
},
"language_overrides": {
"JavaScript": {
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"format_on_save": {
"external": {
"command": "pnpx",
"arguments": ["prettier", "--ignore-unknown", "--stdin-filepath", "{buffer_path}"]
}
}
},
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"TypeScript": {
"format_on_save": {
"external": {
"command": "pnpx",
"arguments": ["prettier", "--ignore-unknown", "--stdin-filepath", "{buffer_path}"]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment