From e8cfaf2eae2e37304bd28e5844f73fb200f125f6 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Thu, 13 Feb 2025 16:38:39 -0500 Subject: [PATCH] maint: tweaking zed config --- home/private_dot_config/zed/keymap.json | 57 +++++++++++++++++++ .../zed/private_settings.json | 38 ++++++++++++- 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 home/private_dot_config/zed/keymap.json diff --git a/home/private_dot_config/zed/keymap.json b/home/private_dot_config/zed/keymap.json new file mode 100644 index 0000000..dffdc2c --- /dev/null +++ b/home/private_dot_config/zed/keymap.json @@ -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" + } + } +] diff --git a/home/private_dot_config/zed/private_settings.json b/home/private_dot_config/zed/private_settings.json index 8d94e5d..55bfd71 100644 --- a/home/private_dot_config/zed/private_settings.json +++ b/home/private_dot_config/zed/private_settings.json @@ -7,9 +7,22 @@ // custom settings, run `zed: open default settings` from the // 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, "ui_font_size": 14, - "buffer_font_family": "Iosevka Term Extralight", + "buffer_font_family": "Iosevka Term", "buffer_font_size": 14, "font_size": 14, "font_family": "Iosevka Term", @@ -23,7 +36,30 @@ "terminal": { "line_height": "standard" }, + + "auto_install_extensions": { + "html": true, + "toml": true, + "catppuccin": true + }, + + "languages": { + "Python": { + "language_servers": ["pyright", "ruff"] + } + }, + "lsp": { + "ruff": { + "initialization_options": { + "settings": { + "lint": { + "extendSelect": ["I"] + } + } + } + }, + "rust-analyzer": { "initialization_options": { "inlayHints": {