zed - ccjjxl/ccjjxl.github.io GitHub Wiki

// 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 `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
  "theme": {
    "mode": "system",
    "light": "Everforest Dark",
    "dark": "Everforest Dark"
  },

  "ui_font_size": 20,
  "ui_font_family": ".SystemUIFont",

  "buffer_font_size": 16,
  "buffer_font_family": "Maple Mono NF CN",

  "icon_theme": "Catppuccin Mocha",

  "base_keymap": "VSCode",
  "vim_mode": false,

  "buffer_line_height": { "custom": 1.4 },
  "buffer_font_features": { "calt": false },
  "buffer_font_weight": 300,

  "toolbar": {
    "breadcrumbs": false,
    "quick_actions": false
  },

  "project_panel": {
    "entry_spacing": "comfortable"
    // "indent_size": 16
  },

  "tabs": {
    "file_icons": true,
    "git_status": true
  },
  "git": {
    "inline_blame": {
      "enabled": false
    }
  },
  "current_line_highlight": "none",

  "format_on_save": "off",
  "tab_size": 4,
  "hard_tabs": true,

  "tab_bar": {
    "show": true,
    "show_nav_history_buttons": false
  },

  "scrollbar": {
    "show": "never"
  },
  "relative_line_numbers": true,
  "preview_tabs":{
  	"enabled": false
  },
  "terminal":{
  "font_family":"Maple Mono NF CN",
  "font_size": 18,
  "copy_on_select": true
  },
  "telemetry":{
  "diagnostics": false,
  "metrics": false
  }
}

// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
 {
    "bindings": {

      "ctrl-\\": "workspace::NewTerminal",
      "ctrl-t": "terminal_panel::ToggleFocus"
    }
  },

  {
    "context": "Workspace",
    "bindings": {
       "space space": "file_finder::Toggle"
    }
  },
  {
    "context": "Editor && vim_mode == insert",
    "bindings": {
       "j k": "vim::NormalBefore"
    }
  }
]