home/.config/zed/settings.json

101 lines
2.8 KiB
JSON
Raw Normal View History

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": {
"Python": {
"language_servers": ["ruff"],
"format_on_save": "language_server",
"formatter": [
{
"language_server": {
"name": "ruff"
}
}
]
// "language_servers": ["pyright", "ruff"]
},
"Rust": {
"format_on_save": "language_server",
"formatter": "language_server"
}
}
2025-01-09 04:46:45 +01:00
}