Want to save and run this spell?

Sign in to favorite, fork, and execute code

Sign In

My Zed config

javascript
7 views
19 days ago
javascript
// Zed settings
//
// Para mais informações: https://zed.dev/docs/configuring-zed
{
  // ========= MELHORIAS GERAIS =========
  "collaboration_panel": {
    "button": false
  },
  "use_system_window_tabs": false,
  "outline_panel": {
    "button": false
  },
  "title_bar": {
    "show_menus": false,
    "show_branch_name": true,
    "show_branch_icon": false
  },
  "notification_panel": {
    "dock": "right"
  },
  "telemetry": {
    "diagnostics": true, // Envia relatórios de crash/erros anônimos
    "metrics": true // Envia métricas de uso (pode desligar se quiser mais privacidade)
  },
  // ========= INTERFACE =========
  "ui_font_size": 13,
  "buffer_font_size": 12,
  "buffer_font_family": "JetBrainsMono Nerd Font",
  "ui_font_family": "JetBrainsMono Nerd Font",
  "buffer_line_height": {
    "custom": 1.8
  },
  "theme": {
    "mode": "system",
    "light": "Ayu Light",
    "dark": "Modern Vesper"
  },
  "tab_size": 2,
  "preferred_line_length": 120, // Limite visual para quebrar linhas
  "wrap_guides": [80, 120],
  "soft_wrap": "none",
  "cursor_blink": false, // Cursor piscando
  "indent_guides": {
    "enabled": true,
    "line_width": 0,
    "active_line_width": 1,
    "coloring": "fixed",
    "background_coloring": "disabled"
  },
  "current_line_highlight": "gutter",
  "icon_theme": "FantastIcons Icon Theme",
  // ========= FONTES E TERMINAL =========
  "terminal": {
    "env": {
      "FIG_NEW_SESSION": "1"
    },
    "font_family": "JetBrainsMono Nerd Font",
    "font_size": 13,
    "line_height": "comfortable",
    "alternate_scroll": "off",
    "blinking": "terminal_controlled",
    "copy_on_select": false,
    "option_as_meta": false,
    "working_directory": "current_project_directory"
  },
  // ========= SALVAMENTO AUTOMÁTICO =========
  "autosave": "off",
  // ========= FORMATADORES & LINTER =========
  "formatter": "auto", // Usa Prettier em vez do language_server
  "prettier": {
    "allowed": true,
    "printWidth": 80,
    "tabWidth": 2,
    "useTabs": false,
    "semi": false,
    "singleQuote": true,
    "quoteProps": "as-needed",
    "trailingComma": "none",
    "bracketSpacing": true,
    "bracketSameLine": false,
    "jsxBracketSameLine": false,
    "arrowParens": "avoid",
    "proseWrap": "preserve",
    "endOfLine": "lf"
  },
  "unstable.ui_density": "comfortable",
  // ========= LSP (TypeScript/JS) =========
  "lsp": {
    "typescript-language-server": {
      "initialization_options": {
        "preferences": {
          "includeInlayParameterNameHints": "all",
          "includeInlayParameterNameHintsWhenArgumentMatchesName": true,
          "includeInlayFunctionParameterTypeHints": true,
          "includeInlayVariableTypeHints": true,
          "includeInlayVariableTypeHintsWhenTypeMatchesName": false,
          "includeInlayPropertyDeclarationTypeHints": true,
          "includeInlayFunctionLikeReturnTypeHints": true,
          "includeInlayEnumMemberValueHints": true
        }
      }
    }
  },
  "inlay_hints": {
    "enabled": true,
    "show_type_hints": false,
    "show_parameter_hints": true
  },
  // ========= GIT =========
  "git": {
    "inline_blame": {
      "enabled": true,
      "show_commit_summary": true
    }
  },
  // ========= OUTROS =========
  "vim_mode": false, // Atalho para quem usa Vim
  "confirm_quit": false, // Não pede confirmação ao sair
  "hover_popover_enabled": true, // Mostra tooltip ao passar mouse
  // ========= SUAS CONFIGS ORIGINAIS (mantidas) =========
  "edit_predictions": {
    "disabled_globs": [],
    "mode": "eager",
    "copilot": {
      "proxy": null,
      "proxy_no_verify": null,
      "enterprise_uri": null
    },
    "enabled_in_text_threads": false
  },
  "use_on_type_format": false,
  "show_completions_on_input": true,
  "project_panel": {
    "dock": "left",
    "hide_root": true,
    "entry_spacing": "comfortable",
    "hide_gitignore": false,
    "auto_fold_dirs": false
  },
  "diagnostics": {
    "inline": {
      "enabled": true
    }
  },
  "file_types": {
    "javascript": ["*.dbclient-js"],
    "html": ["*.embeddedhtml", "*.svg"],
    "json": [".prettierrc"],
    "sql": ["*.sqlbook"],
    "markdown": ["*.rmd"],
    "jsonl": ["*.ndjson"],
    "css": ["*.css"],
    "dotenv": [".env.*", ".dev.vars"]
  },
  "linked_edits": true,
  "tab_bar": {
    "show": true,
    "show_nav_history_buttons": false,
    "show_tab_bar_buttons": true
  },
  "tabs": {
    "file_icons": true,
    "git_status": true
  },
  "minimap": {
    "show": "never"
  },
  "scrollbar": {
    "axes": {
      "horizontal": false,
      "vertical": null
    }
  },
  "base_keymap": "VSCode",
  "agent": {
    "profiles": {
      "agent": {
        "name": "Agent",
        "tools": {
          "thinking": true,
          "terminal": true,
          "read_file": true,
          "project_notifications": true,
          "open": true,
          "now": true,
          "move_path": true,
          "list_directory": true,
          "grep": true,
          "find_path": true,
          "fetch": true,
          "edit_file": true,
          "diagnostics": true,
          "delete_path": true,
          "create_directory": true,
          "copy_path": true
        },
        "enable_all_context_servers": false,
        "context_servers": {}
      }
    },
    "default_profile": "agent",
    "use_modifier_to_send": false,
    "always_allow_tool_actions": true,
    "inline_assistant_model": {
      "provider": "copilot_chat",
      "model": "claude-opus-4.5"
    },
    "default_model": {
      "provider": "copilot_chat",
      "model": "claude-opus-4.5"
    }
  },
  "features": {
    "edit_prediction_provider": "copilot"
  },
  "toolbar": {
    "breadcrumbs": false,
    "quick_actions": false,
    "selections_menu": false,
    "agent_review": false,
    "code_actions": false
  },
  // ========= AÇÕES POR LINGUAGEM =========
  "languages": {
    "Prisma": {
      "formatter": {
        "language_server": {
          "name": "prisma-language-server"
        }
      }
    },
    "JavaScript": {
      "formatter": [
        "prettier",
        { "code_action": "source.organizeImports" },
        { "code_action": "source.organizeImports.biome" },
        { "code_action": "source.fixAll" }
      ]
    },
    "TypeScript": {
      "language_servers": ["tsgo"],
      "formatter": [
        "prettier",
        { "code_action": "source.organizeImports" },
        { "code_action": "source.organizeImports.biome" },
        { "code_action": "source.fixAll" }
      ]
    },
    "TSX": {
      "formatter": [
        "prettier",
        { "code_action": "source.organizeImports" },
        { "code_action": "source.organizeImports.biome" },
        { "code_action": "source.fixAll" }
      ]
    }
  }
}

Sign in to run this code

Create a free account to execute code directly in your browser

Sign In to Run Code