|
5 | 5 | "bindings": { |
6 | 6 | "tab": "editor::Tab", |
7 | 7 | "cmd-]": "window::ShowNextWindowTab", |
8 | | - "cmd-[": "window::ShowPreviousWindowTab" |
9 | | - } |
| 8 | + "cmd-[": "window::ShowPreviousWindowTab", |
| 9 | + }, |
10 | 10 | }, |
11 | 11 | // improving completion |
12 | 12 | // need to overwrite some defaults to get bit better, but not possible yet |
|
15 | 15 | "context": "Editor && edit_prediction && !showing_completions", |
16 | 16 | "bindings": { |
17 | 17 | "tab": "editor::Tab", |
18 | | - "ctrl-y": "editor::AcceptEditPrediction" |
19 | | - } |
| 18 | + "ctrl-y": "editor::AcceptEditPrediction", |
| 19 | + }, |
20 | 20 | }, |
21 | 21 | { |
22 | 22 | "context": "Editor && showing_completions", |
23 | 23 | "bindings": { |
24 | 24 | "tab": "editor::Tab", |
25 | 25 | "enter": "editor::Newline", |
26 | | - "ctrl-y": "editor::ConfirmCompletion" |
27 | | - } |
| 26 | + "ctrl-y": "editor::ConfirmCompletion", |
| 27 | + }, |
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "context": "Editor && showing_code_actions", |
31 | 31 | "bindings": { |
32 | 32 | "tab": "editor::Tab", |
33 | 33 | "enter": "editor::Newline", |
34 | | - "ctrl-y": "editor::ConfirmCodeAction" |
35 | | - } |
| 34 | + "ctrl-y": "editor::ConfirmCodeAction", |
| 35 | + }, |
36 | 36 | }, |
37 | 37 | // pane navigation |
38 | 38 | { |
|
41 | 41 | "ctrl-w h": "workspace::ActivatePaneLeft", |
42 | 42 | "ctrl-w l": "workspace::ActivatePaneRight", |
43 | 43 | "ctrl-w k": "workspace::ActivatePaneUp", |
44 | | - "ctrl-w j": "workspace::ActivatePaneDown" |
| 44 | + "ctrl-w j": "workspace::ActivatePaneDown", |
45 | 45 | // ... or other keybindings |
46 | | - } |
| 46 | + }, |
47 | 47 | }, |
48 | 48 | // placeholders for vim bindings |
49 | 49 | { |
50 | 50 | "context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu", |
51 | 51 | "bindings": { |
52 | 52 | // put key-bindings here if you want them to work in normal & visual mode |
53 | | - } |
| 53 | + }, |
54 | 54 | }, |
55 | 55 | { |
56 | 56 | "context": "Editor && vim_mode == normal && !VimWaiting && !menu", |
57 | 57 | "bindings": { |
58 | 58 | // put key-bindings here if you want them to work only in normal mode |
59 | 59 | // "down": ["workspace::SendKeystrokes", "4 j"] |
60 | 60 | // "up": ["workspace::SendKeystrokes", "4 k"] |
61 | | - } |
| 61 | + }, |
62 | 62 | }, |
63 | 63 | { |
64 | 64 | "context": "Editor && vim_mode == visual && !VimWaiting && !menu", |
65 | 65 | "bindings": { |
66 | 66 | // visual, visual line & visual block modes |
67 | | - } |
| 67 | + }, |
68 | 68 | }, |
69 | 69 | { |
70 | 70 | "context": "Editor && vim_mode == insert && !menu", |
71 | 71 | "bindings": { |
72 | 72 | // put key-bindings here if you want them to work in insert mode |
73 | 73 | // e.g. |
74 | 74 | // "j j": "vim::NormalBefore" // remap jj in insert mode to escape. |
75 | | - } |
76 | | - } |
| 75 | + }, |
| 76 | + }, |
77 | 77 | ] |
0 commit comments