settings.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. // Si tu veux être encore plus précis et forcer quelques-uns manuellement :
  15. "key_bindings": {
  16. "ctrl-c": ["editor::Copy"],
  17. "ctrl-v": ["editor::Paste"],
  18. "ctrl-x": ["editor::Cut"],
  19. "ctrl-z": ["editor::Undo"],
  20. "ctrl-y": ["editor::Redo"],
  21. "ctrl-shift-z": ["editor::Redo"],
  22. "ctrl-a": ["editor::SelectAll"],
  23. "ctrl-f": ["editor::Find"],
  24. "ctrl-h": ["editor::Replace"],
  25. "ctrl-d": ["editor::DuplicateLine"],
  26. "ctrl-shift-d": ["editor::DeleteLine"]
  27. },
  28. // ──────────────────────────────────────────────────────────────
  29. // 2. Assistant Zed + Ollama local → modèle Hermes 3 8B
  30. // ──────────────────────────────────────────────────────────────
  31. "assistant": {
  32. "version": "2",
  33. "default_model": {
  34. "provider": "ollama",
  35. "model": "svjack/Qwen3-8B-heretic:latest" // ou le tag exact que tu utilises
  36. },
  37. "ollama": {
  38. "base_url": "http://localhost:11434"
  39. }
  40. },
  41. "language_models": {
  42. "ollama": {
  43. "api_url": "http://localhost:11434",
  44. "low_speed_timeout_in_seconds": 90, // Hermes 3 8B peut être un peu lent au 1er token
  45. "available_models": [
  46. {
  47. "name": "svjack/Qwen3-8B-heretic:latest",
  48. "display_name": "Qwen3-8B-heretic",
  49. "max_tokens": 1024,
  50. "max_output_tokens": 4096
  51. }
  52. ]
  53. }
  54. },
  55. // ──────────────────────────────────────────────────────────────
  56. // Paramètres recommandés pour Hermes 3 (moins créatif, plus précis)
  57. // ──────────────────────────────────────────────────────────────
  58. "assistant_request": {
  59. "temperature": 0.3,
  60. "top_p": 0.95,
  61. "max_tokens": 2048
  62. }
  63. }