Skip to content

Instantly share code, notes, and snippets.

@sundevilyang
Last active July 29, 2024 11:40
Show Gist options
  • Save sundevilyang/d1788586e6a23b1a8ce9388eb2f83d96 to your computer and use it in GitHub Desktop.
Save sundevilyang/d1788586e6a23b1a8ce9388eb2f83d96 to your computer and use it in GitHub Desktop.
zed editor config

// 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": "Tokyo Night Storm", "tab_bar": { "show": true }, "theme": "New Darcula", "base_keymap": "SublimeText", "features": { "inline_completions": true }, "ui_font_family": "Victor Mono", "ui_font_size": 13, "buffer_font_size": 14, "buffer_font_family": "Victor Mono", "toolbar": { "selections_menu": true }, "terminal": { "blinking": "terminal_controlled", "copy_on_select": true, "font_family": "Hack Nerd Font Mono", "shell": { "program": "/opt/homebrew/bin/zsh" }, "working_directory": "current_project_directory" }, "confirm_quit": true, "tabs": { "git_status": true, "close_position": "right" }, "git": { "git_gutter": "tracked_files", "inline_blame": { "enabled": true } }, "preferred_line_length": 120, "tab_size": 2, "telemetry": { "diagnostics": false, "metrics": false }, "journal": { "path": "~", "hour_format": "hour24" }, "hour_format": "hour24", "languages": { "Elixir": { "language_servers": ["!lexical", "!elixir-ls", "next-ls"], "format_on_save": { "external": { "command": "mix", "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"] } } } }, // "proxy": "socks5://127.0.0.1:7890", "proxy": "http://127.0.0.1:7890",

"language_models": { "openai": { "api_url": "https://api.deepseek.com/v1", "available_models": [ { "custom": { "name": "deepseek-chat", "max_tokens": 128000 } }, { "custom": { "name": "deepseek-coder", "max_tokens": 128000 } } ] } },

// Assistant // local Ollama // "assistant": { // "dock": "right", // "version": "1", // "provider": { // "default_model": { // "keep_alive": "10m", // "name": "wangshenzhi/llama3-8b-chinese-chat-ollama-q8:latest", // "parameter_size": "8B", // "max_tokens": 31000 // }, // "name": "ollama", // "low_speed_timeout_in_seconds": 30 // }, // "default_width": 640, // "default_height": 380 // } // anthropic // "assistant": { // "version": "1", // "provider": { // "default_model": "claude-3-5-sonnet-20240620", // "name": "anthropic" // } // } // // // deepseek "assistant": { "default_model": { "provider": "openai", "model": "deepseek-coder" }, "version": "2", "provider": null } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment