-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
109 lines (87 loc) · 2.49 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
theme = "big_duo"
[editor]
line-number = "absolute"
color-modes = true
cursorline = true
rulers = [80, 100]
bufferline = "multiple"
# Requires https://github.com/helix-editor/helix/pull/5435
# newline-at-eof = true
[editor.lsp]
display-inlay-hints = true
[editor.cursor-shape]
insert = "bar"
[keys.normal]
# Shift+hjkl to extend selections.
J = "extend_line_down"
K = "extend_line_up"
H = "extend_char_left"
L = "extend_char_right"
# Shift+arrows to extend selections.
S-down = "extend_line_down"
S-up = "extend_line_up"
S-left = "extend_char_left"
S-right = "extend_char_right"
C-a = "goto_first_nonwhitespace"
C-e = "goto_line_end"
C-n = "increment"
A-n = "decrement"
# Paste via clipboard as the default.
y = ["yank", "yank_joined_to_clipboard"]
Y = ["yank", "yank_main_selection_to_clipboard"]
# Add join selections back somewhere.
C-j = "join_selections"
# Show docs similar to vim.
C-k = "hover"
# Rebind C-s since I use it for tmux.
C-g = "save_selection"
C-s = "no_op"
# Vim muscle memory for paragraph jumping... not sure if I'm weird for how much
# I use these.
"}" = ["goto_next_paragraph", "collapse_selection"]
"{" = ["goto_prev_paragraph", "collapse_selection"]
# Changing primary selection.
C-l = "rotate_selections_forward"
C-h = "rotate_selections_backward"
C-right = "rotate_selections_forward"
C-left = "rotate_selections_backward"
# Rotating selections.
A-l = "rotate_selection_contents_forward"
A-h = "rotate_selection_contents_backward"
A-right = "rotate_selection_contents_forward"
A-left = "rotate_selection_contents_backward"
[keys.normal.space]
q = ":buffer-close"
[keys.normal.g]
# Jump paragraphs.
k = "goto_prev_paragraph"
j = "goto_next_paragraph"
up = "goto_prev_paragraph"
down = "goto_next_paragraph"
# Extra selections.
L = ["select_mode", "goto_line_end", "normal_mode"]
H = ["select_mode", "goto_first_nonwhitespace", "normal_mode"]
S-right = ["select_mode", "goto_line_end", "normal_mode"]
S-left = ["select_mode", "goto_first_nonwhitespace", "normal_mode"]
G = ["select_mode", "goto_file_start", "goto_line_start", "normal_mode"]
E = ["select_mode", "goto_last_line", "goto_line_end", "normal_mode"]
# Reflows.
[keys.normal.g.q]
q = [":reflow"]
p = [":reflow 80"]
P = [":reflow 100"]
[keys.normal.C-w]
C-g = "hsplit"
C-s = "no_op"
# tmux-like splits
"\"" = "hsplit"
"|" = "vsplit"
[keys.select]
"}" = "goto_next_paragraph"
"{" = "goto_prev_paragraph"
C-a = "goto_line_start"
C-e = "goto_line_end"
# Account for C-s used by tmux.
[keys.insert]
C-g = "commit_undo_checkpoint"
C-s = "no_op"