add zed config

move old configs
This commit is contained in:
xfy
2024-11-05 09:41:29 +08:00
parent 35f0d3c134
commit 460ef329d9
51 changed files with 196 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -981,7 +981,7 @@ tab_title_template "{index}: {title[title.rfind('/')+1:]}"
#: The foreground and background colors. #: The foreground and background colors.
background_opacity 0.95 background_opacity 0.95
background_blur 20 background_blur 15
#: The opacity of the background. A number between zero and one, where #: The opacity of the background. A number between zero and one, where
#: one is opaque and zero is fully transparent. This will only work if #: one is opaque and zero is fully transparent. This will only work if

83
zed/keymap.json Normal file
View File

@ -0,0 +1,83 @@
// 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.
[
{
"context": "VimControl && !menu",
"bindings": {
"space s s": "pane::DeploySearch"
}
},
{
"context": "Edtior && vim_mode == visual",
"bindings": {
"space c a": "editor::ToggleCodeActions" // zed specific
}
},
{
"context": "Editor && vim_mode == normal",
"bindings": {
"space e": "workspace::ToggleRightDock",
"ctrl-/": "workspace::ToggleBottomDock",
"space f m": "editor::Format",
"space space": "file_finder::Toggle",
"space |": "pane::SplitRight",
"space x": "pane::CloseActiveItem",
"shift-l": ["workspace::SendKeystrokes", ": bnext enter"],
"shift-h": ["workspace::SendKeystrokes", ": bprevious enter"],
"space f f": "file_finder::Toggle",
"space c a": "editor::ToggleCodeActions", // zed specific
"space r n": "editor::Rename",
"space g g": [
"workspace::SendKeystrokes",
": new center terminal enter lazygit enter"
],
"space t x": ["workspace::SendKeystrokes", ": clist enter"],
"space t t": ["workspace::SendKeystrokes", ": new center terminal enter"],
"space h p": ["workspace::SendKeystrokes", ": toggle hunk diff enter"],
"space h r": [
"workspace::SendKeystrokes",
": revert selected hunks enter"
],
"space c t": [
"workspace::SendKeystrokes",
": language selector: toggle enter"
]
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-/": "workspace::ToggleBottomDock"
}
},
{
"context": "BottomDock",
"bindings": {
"space e": "workspace::ToggleRightDock"
}
},
{
"context": "Editor",
"bindings": {
"ctrl-s": "workspace::Save",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "Dock",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
}
]

112
zed/settings.json Normal file
View File

@ -0,0 +1,112 @@
// 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)
{
"features": {
"inline_completion_provider": "supermaven"
},
"collaboration_panel": {
"dock": "right"
},
"terminal": {
"env": {
"EDITOR": "zed"
}
},
"language_models": {
"ollama": {
"api_url": "http://localhost:11434"
}
},
"outline_panel": {
"dock": "right"
},
"assistant": {
"default_model": {
"provider": "ollama",
"model": "llama3.1:latest"
},
"dock": "right",
"version": "2"
},
"project_panel": {
"dock": "right"
},
"vim_mode": true,
"relative_line_numbers": true,
"ui_font_size": 16,
"buffer_font_size": 16,
"theme": {
"mode": "dark",
"light": "One Light",
"dark": "Catppuccin Mocha (Blur)"
},
"base_keymap": "VSCode",
"buffer_font_family": "JetBrainsMono Nerd Font",
"tab_bar": {
"show": true,
"show_nav_history_buttons": true
},
"toolbar": {
"breadcrumbs": true,
"quick_actions": false
},
"preview_tabs": {
"enabled": false,
"enable_preview_from_file_finder": false,
"enable_preview_from_code_navigation": false
},
"tabs": {
"close_position": "right",
"file_icons": true,
"git_status": false
},
// "proxy": "http://127.0.0.1:10809",
"ssh_connections": [
{
"host": "57",
"projects": [
{
"paths": [
"~/Developer/show-client"
]
},
{
"paths": [
"~/Developer/show-client-multiple"
]
},
{
"paths": [
"~/Developer/gorra"
]
},
{
"paths": [
"~/Developer/site_operation_platform"
]
},
{
"paths": [
"~/Developer/show-client-v2"
]
},
{
"paths": [
"~/Developer/show-library"
]
},
{
"paths": [
"~/Developer/venus"
]
}
]
}
]
}