my system configurations ^-^
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(zed): keybinds

willow 4dff95c6 dc1a8a29

+106 -24
+3
modules/home/programs/gui/zed/default.nix
··· 18 18 mkLink = config.lib.file.mkOutOfStoreSymlink; 19 19 20 20 settingsFile = mkLink "${config.home.homeDirectory}/flake/modules/home/programs/gui/zed/settings.json"; 21 + keymapFile = mkLink "${config.home.homeDirectory}/flake/modules/home/programs/gui/zed/keymap.json"; 21 22 in { 22 23 packages = [ 23 24 (pkgs-unstable.zed-editor.fhsWithPackages (pkgs: [pkgs.zlib])) ··· 26 27 pkgs.nixd 27 28 pkgs.nil 28 29 pkgs.prettierd 30 + pkgs.kdePackages.qtdeclarative # QML 29 31 ]; 30 32 file.".config/zed/settings.json".source = settingsFile; 33 + file.".config/zed/keymap.json".source = keymapFile; 31 34 }; 32 35 }; 33 36 }
+53
modules/home/programs/gui/zed/keymap.json
··· 1 + // Zed keymap 2 + // 3 + // For information on binding keys, see the Zed 4 + // documentation: https://zed.dev/docs/key-bindings 5 + // 6 + // To see the default key bindings run `zed: open default keymap` 7 + // from the command palette. 8 + [ 9 + { 10 + "context": "Workspace", 11 + "bindings": { 12 + // "shift shift": "file_finder::Toggle" 13 + } 14 + }, 15 + { 16 + "context": "Editor", 17 + "bindings": { 18 + // "j k": ["workspace::SendKeystrokes", "escape"] 19 + } 20 + }, 21 + 22 + // Helix 23 + { 24 + "context": "VimControl && !menu", 25 + "bindings": { 26 + "n": "vim::Left", 27 + "e": "vim::Down", 28 + "i": "vim::Up", 29 + "o": "vim::Right", 30 + "backspace": null, 31 + "%": "editor::SelectAll" 32 + } 33 + }, 34 + { 35 + "context": "vim_mode == helix_normal && !menu", 36 + "bindings": { 37 + "k": "vim::InsertBefore", 38 + "shift-k": "vim::InsertFirstNonWhitespace", 39 + 40 + "j": "vim::MoveToNextMatch", 41 + "shift-j": "vim::MoveToPreviousMatch", 42 + 43 + "space b n": "pane::ActivatePreviousItem", 44 + "space b o": "pane::ActivateNextItem", 45 + 46 + "g n": "vim::StartOfLine", 47 + "g o": "vim::EndOfLine", 48 + 49 + "shift-e": "vim::ScrollDown", 50 + "shift-i": "vim::ScrollUp" 51 + } 52 + } 53 + ]
+50 -24
modules/home/programs/gui/zed/settings.json
··· 1 1 { 2 - "assistant": { 2 + // Helix 3 + "vim_mode": true, 4 + "vim": { 5 + "default_mode": "helix_normal" 6 + }, 7 + "relative_line_numbers": true, 8 + "cursor_blink": false, 9 + "scrollbar": { 10 + "show": "never" 11 + }, 12 + "scroll_beyond_last_line": "off", 13 + "vertical_scroll_margin": 5, 14 + 15 + // Editor 16 + "ensure_final_newline_on_save": true, 17 + "remove_trailing_whitespace_on_save": true, 18 + "tab_size": 2, 19 + 20 + // AI 21 + "agent": { 22 + "default_profile": "ask", 3 23 "default_model": { 4 - "model": "gpt-4o", 24 + "model": "gpt-4.1", 5 25 "provider": "copilot_chat" 6 26 }, 7 27 "version": "2" 8 28 }, 29 + "show_edit_predictions": false, 30 + "features": { 31 + "edit_prediction_provider": "copilot" 32 + }, 33 + 34 + // Extensions 9 35 "auto_install_extensions": { 10 36 "catppuccin-icons": true, 11 37 "discord-presence": true, ··· 21 47 "toml": true, 22 48 "typst": true 23 49 }, 50 + 51 + // Appearance 24 52 "buffer_font_family": "Maple Mono NF", 25 53 "buffer_font_size": 16, 26 - "ensure_final_newline_on_save": true, 54 + "terminal_font_family": "Maple Mono NF", 55 + "terminal_font_size": 16, 56 + "ui_font_family": "Maple Mono NF", 57 + "ui_font_size": 16, 27 58 "icon_theme": "Catppuccin Macchiato", 59 + "theme": { 60 + "dark": "Catppuccin Macchiato (pink)", 61 + "light": "Catppuccin Macchiato (pink)" 62 + }, 63 + 64 + // Languages 28 65 "lsp": { 29 66 "tinymist": { 30 67 "settings": { ··· 59 96 } 60 97 }, 61 98 "Markdown": { 62 - "editor": { 63 - "remove_trailing_whitespace_on_save": false 99 + "remove_trailing_whitespace_on_save": false, 100 + "formatter": { 101 + "external": { 102 + "arguments": ["--stdin-filepath", "{buffer_path}"], 103 + "command": "prettierd" 104 + } 64 105 } 65 106 }, 66 107 "Nix": { ··· 69 110 "command": "alejandra" 70 111 } 71 112 }, 72 - "language_severs": ["nil", "!nixd"] 113 + "language_servers": ["nil", "!nixd"] 73 114 }, 74 115 "Python": { 75 - "editor": { 76 - "format_on_save": true, 77 - "tab_size": 4 78 - } 116 + "tab_size": 4 79 117 }, 80 118 "Rust": { 81 - "editor": { 82 - "tab_size": 4 83 - } 119 + "tab_size": 4 84 120 } 85 - }, 86 - "remove_trailing_whitespace_on_save": true, 87 - "tab_size": 2, 88 - "terminal_font_family": "Maple Mono NF", 89 - "terminal_font_size": 16, 90 - "theme": { 91 - "dark": "Catppuccin Macchiato (pink)", 92 - "light": "Catppuccin Macchiato (pink)" 93 - }, 94 - "ui_font_family": "Maple Mono NF", 95 - "ui_font_size": 16 121 + } 96 122 }