2025-01-09 04:46:45 +01:00
|
|
|
// 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 `zed: open default settings` from the
|
|
|
|
// command palette (cmd-shift-p / ctrl-shift-p)
|
|
|
|
{
|
2025-01-12 18:04:33 +01:00
|
|
|
"vim": {
|
|
|
|
"use_system_clipboard": "on_yank"
|
|
|
|
},
|
|
|
|
"relative_line_numbers": true,
|
2025-01-09 04:46:45 +01:00
|
|
|
"features": {
|
|
|
|
"inline_completion_provider": "none"
|
|
|
|
},
|
|
|
|
"assistant": {
|
2025-01-12 18:04:33 +01:00
|
|
|
"default_model": {
|
|
|
|
"provider": "zed.dev",
|
|
|
|
"model": "claude-3-5-sonnet-latest"
|
|
|
|
},
|
2025-01-09 04:46:45 +01:00
|
|
|
"dock": "right",
|
|
|
|
"version": "2"
|
|
|
|
},
|
2025-01-12 18:04:33 +01:00
|
|
|
"buffer_font_size": 17,
|
2025-01-18 01:28:29 +01:00
|
|
|
"format_on_save": "prettier",
|
|
|
|
"formatter": "prettier",
|
2025-01-09 04:46:45 +01:00
|
|
|
"buffer_font_family": "FiraCode Nerd Font",
|
|
|
|
"tab_size": 4,
|
|
|
|
"vim_mode": true,
|
|
|
|
"ui_font_size": 16,
|
|
|
|
"theme": {
|
|
|
|
"mode": "system",
|
|
|
|
"light": "One Light",
|
|
|
|
"dark": "Tokyo Night"
|
|
|
|
},
|
|
|
|
"lsp": {
|
|
|
|
"rust-analyzer": {
|
|
|
|
"initialization_options": {
|
|
|
|
"check": {
|
|
|
|
"command": "clippy" // rust-analyzer.checkOnSave.command
|
|
|
|
},
|
|
|
|
"checkOnSave": {
|
|
|
|
"command": "clippy" // rust-analyzer.checkOnSave.command
|
|
|
|
},
|
|
|
|
"inlayHints": {
|
|
|
|
"maxLength": null,
|
|
|
|
"lifetimeElisionHints": {
|
|
|
|
"enable": "skip_trivial",
|
|
|
|
"useParameterNames": true
|
|
|
|
},
|
|
|
|
"closureReturnTypeHints": {
|
|
|
|
"enable": "always"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"diagnostics": {
|
|
|
|
"experimental": {
|
|
|
|
"enable": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"cargo": {
|
|
|
|
"features": "all",
|
|
|
|
"allTargets": true
|
2025-01-18 01:28:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ruff": {
|
|
|
|
"initialization_options": {
|
|
|
|
"settings": {
|
|
|
|
// Ruff server settings goes here
|
|
|
|
"lineLength": 80,
|
|
|
|
"lint": {
|
|
|
|
"extendSelect": ["I"]
|
|
|
|
}
|
|
|
|
}
|
2025-01-09 04:46:45 +01:00
|
|
|
}
|
|
|
|
}
|
2025-01-12 18:04:33 +01:00
|
|
|
},
|
|
|
|
"soft_wrap": "editor_width",
|
|
|
|
"show_wrap_guides": true,
|
2025-01-18 01:28:29 +01:00
|
|
|
"wrap_guides": [80],
|
|
|
|
"languages": {
|
2025-01-19 02:32:49 +01:00
|
|
|
"Jinja2": {
|
|
|
|
"formatter": [
|
|
|
|
{
|
|
|
|
"external": {
|
|
|
|
"command": "djlint",
|
|
|
|
"arguments": [
|
|
|
|
"--reformat",
|
|
|
|
"--format-css",
|
|
|
|
"--format-js",
|
|
|
|
"-"
|
|
|
|
// "{buffer_path}"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"format_on_save": "on"
|
|
|
|
},
|
2025-01-18 01:28:29 +01:00
|
|
|
"Python": {
|
|
|
|
"format_on_save": "language_server",
|
|
|
|
"formatter": [
|
|
|
|
{
|
|
|
|
"language_server": {
|
|
|
|
"name": "ruff"
|
|
|
|
}
|
|
|
|
}
|
2025-01-19 02:32:49 +01:00
|
|
|
],
|
|
|
|
"language_servers": ["pyright", "ruff"]
|
2025-01-18 01:28:29 +01:00
|
|
|
},
|
|
|
|
"Rust": {
|
|
|
|
"format_on_save": "language_server",
|
|
|
|
"formatter": "language_server"
|
|
|
|
}
|
|
|
|
}
|
2025-01-09 04:46:45 +01:00
|
|
|
}
|