settings.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Zed settings
  2. //
  3. // For information on how to configure Zed, see the Zed
  4. // documentation: https://zed.dev/docs/configuring-zed
  5. //
  6. // To see all of Zed's default settings without changing your
  7. // custom settings, run `zed: open default settings` from the
  8. // command palette (cmd-shift-p / ctrl-shift-p)
  9. {
  10. // ──────────────────────────────────────────────────────────────
  11. // 1. Raccourcis Windows / Linux (remplace les bindings macOS)
  12. // ──────────────────────────────────────────────────────────────
  13. "base_keymap": "VSCode", // utilise quasi tous les raccourcis VSCode (donc Windows-friendly)
  14. "key_bindings": {
  15. "ctrl-c": ["editor::Copy"],
  16. "ctrl-v": ["editor::Paste"],
  17. "ctrl-x": ["editor::Cut"],
  18. "ctrl-z": ["editor::Undo"],
  19. "ctrl-y": ["editor::Redo"],
  20. "ctrl-shift-z": ["editor::Redo"],
  21. "ctrl-a": ["editor::SelectAll"],
  22. "ctrl-f": ["editor::Find"],
  23. "ctrl-h": ["editor::Replace"],
  24. "ctrl-d": ["editor::DuplicateLine"],
  25. "ctrl-shift-d": ["editor::DeleteLine"]
  26. },
  27. // ──────────────────────────────────────────────────────────────
  28. // 2. Assistant Zed + Ollama local → modèle qwen2.5-coder:1.5b
  29. // ──────────────────────────────────────────────────────────────
  30. "agent": {
  31. "default_model": {
  32. "provider": "ollama",
  33. "model": "qwen2.5-coder:1.5b" // ou le tag exact que tu utilises
  34. },
  35. "ollama": {
  36. "base_url": "http://localhost:11434"
  37. }
  38. },
  39. "language_models": {
  40. "ollama": {
  41. "api_url": "http://localhost:11434",
  42. "low_speed_timeout_in_seconds": 90, // qwen2.5-coder:1.5b peut être un peu lent au 1er token
  43. "available_models": [
  44. {
  45. "name": "qwen2.5-coder:1.5b",
  46. "display_name": "qwen2.5-coder:1.5b",
  47. "max_tokens": 2048,
  48. "max_output_tokens": 4096
  49. }
  50. ]
  51. }
  52. },
  53. // ──────────────────────────────────────────────────────────────
  54. // Paramètres recommandés pour qwen2.5-coder:1.5b (moins créatif, plus précis)
  55. // ──────────────────────────────────────────────────────────────
  56. "assistant_request": {
  57. "temperature": 0.3,
  58. "top_p": 0.95,
  59. "max_tokens": 2048
  60. }
  61. }