zed stuff

This commit is contained in:
Christoph J. Scherr 2025-01-12 18:04:33 +01:00
parent 1c6d2f5848
commit 1ed1614b70
2 changed files with 81 additions and 47 deletions

View File

@ -7,51 +7,12 @@
// from the command palette. // from the command palette.
[ [
{ {
"context": "Workspace",
"bindings": {
"f5": "workspace::ToggleLeftDock",
"alt-v": "terminal_panel::ToggleFocus",
}
},
{
"context": "Picker",
"bindings": { "bindings": {
"shift-tab": "menu::SelectPrev", "shift-tab": "menu::SelectPrev",
"tab": "menu::SelectNext" "tab": "menu::SelectNext",
} "alt-c": "pane::CloseActiveItem",
}, "ctrl-shift-w": null,
{ "ctrl-q": null,
"context": "BufferSearchBar && !in_replace > Editor",
"bindings": {
"shift-tab": "menu::SelectPrev",
"tab": "menu::SelectNext"
}
},
{
"context": "Terminal",
"bindings": {
"alt-v": "workspace::ToggleBottomDock",
"ctrl-w": "terminal::ToggleViMode"
}
},
{
"context": "Terminal && VimControl",
"bindings": {
"tab": "pane::ActivateNextItem",
"shift-tab": "pane::ActivatePrevItem",
}
},
{
"context": "Editor",
"bindings": {
"; f s": "outline::Toggle",
"; f w": "workspace::NewSearch",
"; f t": "theme_selector::Toggle",
}
},
{
"context": "VimControl && !menu",
"bindings": {
"ctrl-h": [ "ctrl-h": [
"workspace::ActivatePaneInDirection", "workspace::ActivatePaneInDirection",
"Left" "Left"
@ -68,12 +29,43 @@
"workspace::ActivatePaneInDirection", "workspace::ActivatePaneInDirection",
"Down" "Down"
], ],
}
},
{
"context": "Workspace",
"bindings": {
"f5": "workspace::ToggleLeftDock",
"alt-v": "terminal_panel::ToggleFocus",
}
},
{
"context": "menu",
"bindings": {
"shift-tab": "menu::SelectPrev",
"tab": "menu::SelectNext",
"f4": "menu::SelectPrev",
"f6": "menu::SelectNext"
}
},
{
"context": "Terminal",
"bindings": {
"alt-v": "workspace::ToggleBottomDock",
"ctrl-w": "terminal::ToggleViMode"
}
},
{
"context": "VimControl && !menu",
"bindings": {
"; f s": "outline::Toggle",
"; f w": "workspace::NewSearch",
"; f t": "theme_selector::Toggle",
"; f f": "file_finder::Toggle",
"L": "vim::EndOfLine", "L": "vim::EndOfLine",
"H": "vim::StartOfLine", "H": "vim::StartOfLine",
"left": "editor::TabPrev", "left": "editor::TabPrev",
"right": "editor::Indent", "right": "editor::Indent",
"space v": "editor::ToggleComments", "space v": "editor::ToggleComments",
"alt-c": "pane::CloseActiveItem",
"alt-j": "vim::ScrollDown", "alt-j": "vim::ScrollDown",
"alt-k": "vim::ScrollUp", "alt-k": "vim::ScrollUp",
"up": "editor::MoveLineUp", "up": "editor::MoveLineUp",
@ -83,9 +75,18 @@
"space p": "editor::Paste", "space p": "editor::Paste",
"tab": "pane::ActivateNextItem", "tab": "pane::ActivateNextItem",
"shift-tab": "pane::ActivatePrevItem", "shift-tab": "pane::ActivatePrevItem",
"space \"": "pane::SplitVertical", "space \"": "pane::SplitRight",
"space %": "pane::SplitHorizontal", "space %": "pane::SplitHorizontal",
"space c r": "editor::Rename", "space c r": "editor::Rename",
"space c t r": "diagnostics::Deploy",
"#": [
"vim::PushOperator",
{
"Jump": {
"line": true
}
}
],
} }
}, },
{ {
@ -116,4 +117,24 @@
"tab": "editor::ContextMenuNext", "tab": "editor::ContextMenuNext",
} }
}, },
{
"context": "ProjectPanel && not_editing",
"bindings": {
"n": "project_panel::NewFile",
"N": "project_panel::NewDirectory",
"r": "project_panel::Rename",
"d": [
"project_panel::Trash",
{
"skip_prompt": false
}
],
"D": [
"project_panel::Delete",
{
"skip_prompt": false
}
],
}
},
] ]

View File

@ -7,20 +7,28 @@
// custom settings, run `zed: open default settings` from the // custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p) // command palette (cmd-shift-p / ctrl-shift-p)
{ {
"vim": {
"use_system_clipboard": "on_yank"
},
"relative_line_numbers": true,
"features": { "features": {
"inline_completion_provider": "none" "inline_completion_provider": "none"
}, },
"assistant": { "assistant": {
"default_model": {
"provider": "zed.dev",
"model": "claude-3-5-sonnet-latest"
},
"dock": "right", "dock": "right",
"version": "2" "version": "2"
}, },
"buffer_font_size": 17,
"format_on_save": "language_server", "format_on_save": "language_server",
"formatter": "language_server", "formatter": "language_server",
"buffer_font_family": "FiraCode Nerd Font", "buffer_font_family": "FiraCode Nerd Font",
"tab_size": 4, "tab_size": 4,
"vim_mode": true, "vim_mode": true,
"ui_font_size": 16, "ui_font_size": 16,
"buffer_font_size": 16,
"theme": { "theme": {
"mode": "system", "mode": "system",
"light": "One Light", "light": "One Light",
@ -56,5 +64,10 @@
}, },
} }
} }
} },
"soft_wrap": "editor_width",
"show_wrap_guides": true,
"wrap_guides": [
80
],
} }