maint: tweaking zed config
This commit is contained in:
parent
5ddaf90681
commit
e8cfaf2eae
2 changed files with 94 additions and 1 deletions
57
home/private_dot_config/zed/keymap.json
Normal file
57
home/private_dot_config/zed/keymap.json
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"context": "Terminal || ProjectPanel || CollabPanel || OutlinePanel || ChatPanel || VimControl || EmptyPane || SharedScreen || MarkdownPreview || KeyContextView",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-w": null,
|
||||||
|
"ctrl-w left": ["workspace::ActivatePaneInDirection", "Left"],
|
||||||
|
"ctrl-w right": ["workspace::ActivatePaneInDirection", "Right"],
|
||||||
|
"ctrl-w up": ["workspace::ActivatePaneInDirection", "Up"],
|
||||||
|
"ctrl-w down": ["workspace::ActivatePaneInDirection", "Down"],
|
||||||
|
"ctrl-w ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
|
||||||
|
"ctrl-w ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
|
||||||
|
"ctrl-w ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
|
||||||
|
"ctrl-w ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
|
||||||
|
"ctrl-w h": ["workspace::ActivatePaneInDirection", "Left"],
|
||||||
|
"ctrl-w l": ["workspace::ActivatePaneInDirection", "Right"],
|
||||||
|
"ctrl-w k": ["workspace::ActivatePaneInDirection", "Up"],
|
||||||
|
"ctrl-w j": ["workspace::ActivatePaneInDirection", "Down"],
|
||||||
|
"ctrl-w shift-left": ["workspace::SwapPaneInDirection", "Left"],
|
||||||
|
"ctrl-w shift-right": ["workspace::SwapPaneInDirection", "Right"],
|
||||||
|
"ctrl-w shift-up": ["workspace::SwapPaneInDirection", "Up"],
|
||||||
|
"ctrl-w shift-down": ["workspace::SwapPaneInDirection", "Down"],
|
||||||
|
"ctrl-w shift-h": ["workspace::SwapPaneInDirection", "Left"],
|
||||||
|
"ctrl-w shift-l": ["workspace::SwapPaneInDirection", "Right"],
|
||||||
|
"ctrl-w shift-k": ["workspace::SwapPaneInDirection", "Up"],
|
||||||
|
"ctrl-w shift-j": ["workspace::SwapPaneInDirection", "Down"],
|
||||||
|
"ctrl-w >": ["vim::ResizePane", "Widen"],
|
||||||
|
"ctrl-w <": ["vim::ResizePane", "Narrow"],
|
||||||
|
"ctrl-w -": ["vim::ResizePane", "Shorten"],
|
||||||
|
"ctrl-w +": ["vim::ResizePane", "Lengthen"],
|
||||||
|
"ctrl-w _": "vim::MaximizePane",
|
||||||
|
"ctrl-w =": "vim::ResetPaneSizes",
|
||||||
|
"ctrl-w g t": "pane::ActivateNextItem",
|
||||||
|
"ctrl-w ctrl-g t": "pane::ActivateNextItem",
|
||||||
|
"ctrl-w g shift-t": "pane::ActivatePrevItem",
|
||||||
|
"ctrl-w ctrl-g shift-t": "pane::ActivatePrevItem",
|
||||||
|
"ctrl-w w": "workspace::ActivateNextPane",
|
||||||
|
"ctrl-w ctrl-w": "workspace::ActivateNextPane",
|
||||||
|
"ctrl-w p": "workspace::ActivatePreviousPane",
|
||||||
|
"ctrl-w ctrl-p": "workspace::ActivatePreviousPane",
|
||||||
|
"ctrl-w shift-w": "workspace::ActivatePreviousPane",
|
||||||
|
"ctrl-w ctrl-shift-w": "workspace::ActivatePreviousPane",
|
||||||
|
"ctrl-w ctrl-v": "pane::SplitVertical",
|
||||||
|
"ctrl-w v": "pane::SplitVertical",
|
||||||
|
"ctrl-w shift-s": "pane::SplitHorizontal",
|
||||||
|
"ctrl-w ctrl-s": "pane::SplitHorizontal",
|
||||||
|
"ctrl-w s": "pane::SplitHorizontal",
|
||||||
|
"ctrl-w ctrl-c": "pane::CloseAllItems",
|
||||||
|
"ctrl-w c": "pane::CloseAllItems",
|
||||||
|
"ctrl-w ctrl-q": "pane::CloseAllItems",
|
||||||
|
"ctrl-w q": "pane::CloseAllItems",
|
||||||
|
"ctrl-w ctrl-o": "workspace::CloseInactiveTabsAndPanes",
|
||||||
|
"ctrl-w o": "workspace::CloseInactiveTabsAndPanes",
|
||||||
|
"ctrl-w ctrl-n": "workspace::NewFileSplitHorizontal",
|
||||||
|
"ctrl-w n": "workspace::NewFileSplitHorizontal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -7,9 +7,22 @@
|
||||||
// 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)
|
||||||
{
|
{
|
||||||
|
"outline_panel": {
|
||||||
|
"dock": "left"
|
||||||
|
},
|
||||||
|
|
||||||
|
"assistant": {
|
||||||
|
"enable_experimental_live_diffs": true,
|
||||||
|
"default_model": {
|
||||||
|
"provider": "copilot_chat",
|
||||||
|
"model": "gpt-4o"
|
||||||
|
},
|
||||||
|
"version": "2"
|
||||||
|
},
|
||||||
|
|
||||||
"vim_mode": true,
|
"vim_mode": true,
|
||||||
"ui_font_size": 14,
|
"ui_font_size": 14,
|
||||||
"buffer_font_family": "Iosevka Term Extralight",
|
"buffer_font_family": "Iosevka Term",
|
||||||
"buffer_font_size": 14,
|
"buffer_font_size": 14,
|
||||||
"font_size": 14,
|
"font_size": 14,
|
||||||
"font_family": "Iosevka Term",
|
"font_family": "Iosevka Term",
|
||||||
|
@ -23,7 +36,30 @@
|
||||||
"terminal": {
|
"terminal": {
|
||||||
"line_height": "standard"
|
"line_height": "standard"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"auto_install_extensions": {
|
||||||
|
"html": true,
|
||||||
|
"toml": true,
|
||||||
|
"catppuccin": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"languages": {
|
||||||
|
"Python": {
|
||||||
|
"language_servers": ["pyright", "ruff"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"lsp": {
|
"lsp": {
|
||||||
|
"ruff": {
|
||||||
|
"initialization_options": {
|
||||||
|
"settings": {
|
||||||
|
"lint": {
|
||||||
|
"extendSelect": ["I"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"rust-analyzer": {
|
"rust-analyzer": {
|
||||||
"initialization_options": {
|
"initialization_options": {
|
||||||
"inlayHints": {
|
"inlayHints": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue