Skip to content

Instantly share code, notes, and snippets.

@vito
Last active July 12, 2024 02:34
Show Gist options
  • Save vito/57a03a09a55f41bc0691153545196204 to your computer and use it in GitHub Desktop.
Save vito/57a03a09a55f41bc0691153545196204 to your computer and use it in GitHub Desktop.
[
{
"context": "Editor && vim_mode == insert",
"bindings": {
"j k": "vim::NormalBefore",
"k j": "vim::NormalBefore"
}
},
{
"context": "Editor && vim_mode == normal",
"bindings": {
"g r": "editor::FindAllReferences",
"space": "editor::Cancel"
}
},
{
"context": "Editor && (vim_mode == normal || vim_mode == visual)",
"bindings": {
"enter": "workspace::Save"
}
},
{
"bindings": {
// pane nav
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
// let me delete words in terminal
"ctrl-w": null,
"ctrl-q": "pane::CloseActiveItem",
// terminal toggle
"ctrl-t": "workspace::ToggleBottomDock",
// zoom pane
"alt-enter": "workspace::ToggleZoom"
}
}
]
// 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.
{
// "buffer_font_family": "IosevkaTermSS08",
"ui_font_family": "Iosevka Term SS08",
"ui_font_size": 16,
"buffer_font_family": "Iosevka Term SS08",
"buffer_font_size": 16,
"buffer_font_weight": 500,
"theme": "Rosé Pine",
"use_autoclose": false,
"telemetry": {
"diagnostics": true,
"metrics": true
},
"vim_mode": true,
"tab_size": 2,
"tabs": {
"git_status": true
},
// "tab_bar": {
// "show": false // too confusing, panes for life
// },
"terminal": {
"env": {
"EDITOR": "zed --wait"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment