mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-12-23 04:31:07 +01:00
121 lines
3 KiB
JSON
121 lines
3 KiB
JSON
// 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": "Catppuccin Espresso (Blur)",
|
|
"ui_font_size": 15,
|
|
"buffer_font_size": 14,
|
|
// Mine
|
|
"format_on_save": "on",
|
|
"terminal": {
|
|
"font_family": "DejaVuSansM Nerd Font",
|
|
"line_height": "standard",
|
|
"font_size": 15
|
|
},
|
|
"project_panel": {
|
|
"default_width": 320,
|
|
"dock": "right"
|
|
},
|
|
"scrollbar": {
|
|
"show": "never"
|
|
},
|
|
"auto_update": false,
|
|
// LSP
|
|
"lsp": {
|
|
"solargraph": {
|
|
"initialization_options": {
|
|
"diagnostics": true,
|
|
"formatting": false
|
|
}
|
|
},
|
|
"ruff": {
|
|
"initialization_options": {
|
|
"settings": {
|
|
// Ruff server settings goes here
|
|
"lineLength": 80,
|
|
"lint": {
|
|
"extendSelect": ["I"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"languages": {
|
|
"Python": {
|
|
"show_inline_completions": true,
|
|
"language_servers": ["pyright", "ruff"],
|
|
"formatter": {
|
|
"external": {
|
|
"command": "/home/hyro/.local/share/zed/extensions/work/ruff/ruff-0.8.4/ruff-x86_64-unknown-linux-gnu/ruff",
|
|
"arguments": ["format", "-"]
|
|
}
|
|
},
|
|
"format_on_save": "on"
|
|
},
|
|
"Astro": {
|
|
"formatter": "prettier",
|
|
"code_actions_on_format": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"format_on_save": "on"
|
|
},
|
|
"TypeScript": {
|
|
"formatter": "prettier",
|
|
"code_actions_on_format": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"format_on_save": "on"
|
|
},
|
|
"TSX": {
|
|
"formatter": "prettier",
|
|
"code_actions_on_format": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"format_on_save": "on"
|
|
},
|
|
"JavaScript": {
|
|
"formatter": "prettier",
|
|
"code_actions_on_format": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"format_on_save": "on"
|
|
}
|
|
},
|
|
// Assistant
|
|
"assistant": {
|
|
"default_model": {
|
|
"provider": "zed.dev",
|
|
"model": "claude-3-5-sonnet-latest"
|
|
},
|
|
"version": "2"
|
|
}
|
|
// The following settings have been changed from the upstream defaults to
|
|
// improve security and privacy. Here are the upstream defaults, you can
|
|
// uncomment them if you like.
|
|
//
|
|
// "features": {
|
|
// // Enable copilot (provided by an online service).
|
|
// "copilot": true,
|
|
// "inline_completion_provider": "copilot"
|
|
// },
|
|
// "assistant": {
|
|
// "version": "1",
|
|
// // Enable the assistant (provided by an online service).
|
|
// "enabled": true
|
|
// },
|
|
// "telemetry": {
|
|
// // Send debug info like crash reports to Zed Industries.
|
|
// "diagnostics": true,
|
|
// // Send anonymized usage data like what languages you're using Zed with
|
|
// // to Zed Industries.
|
|
// "metrics": true
|
|
// },
|
|
// "journal": {
|
|
// "hour_format": "hour12"
|
|
// }
|
|
}
|