Skip to content

Instantly share code, notes, and snippets.

@polo7
Last active December 6, 2024 19:37
Show Gist options
  • Select an option

  • Save polo7/6fa0ffbc42ed2e99cb130057e3d3f0f5 to your computer and use it in GitHub Desktop.

Select an option

Save polo7/6fa0ffbc42ed2e99cb130057e3d3f0f5 to your computer and use it in GitHub Desktop.
My settings for ZED editor
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"theme": "Ayu Dark",
"features": {
"copilot": false
},
"ui_font_size": 16,
"buffer_font_features": {
// Disable ligatures:
"calt": false
},
"buffer_font_size": 16,
"preferred_line_length": 120,
"wrap_guides": [120],
"format_on_save": "off",
"hard_tabs": false,
"tab_size": 4,
"git": {
// Control whether the git gutter is shown. May take 2 values:
// "git_gutter": "tracked_files" / "hide"
"git_gutter": "tracked_files"
},
"inlayHints": {
"maxLength": null,
"lifetimeElisionHints": {
"useParameterNames": true,
"enable": "skip_trivial"
},
"closureReturnTypeHints": {
"enable": "always"
}
},
"lsp": {
"rust-analyzer": {
"initialization_options": {
"binary": {
"path_lookup": true
},
"imports": {
"preferNoStd": true
}
}
}
},
// Different settings for specific languages.
"languages": {
"Plain Text": {
"soft_wrap": "preferred_line_length",
"show_wrap_guides": true,
"format_on_save": "off"
},
"C++": {
"tab_size": 4,
"format_on_save": "off"
},
"Go": {
"tab_size": 4,
"hard_tabs": true,
"code_actions_on_format": {
"source.organizeImports": true
}
},
"Make": {
"hard_tabs": true
},
"Markdown": {
"tab_size": 2,
"soft_wrap": "preferred_line_length"
},
"JavaScript": {
"tab_size": 2
},
"Terraform": {
"tab_size": 2
},
"TypeScript": {
"tab_size": 2
},
"TSX": {
"tab_size": 2
},
"YAML": {
"tab_size": 2
},
"JSON": {
"tab_size": 2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment