-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
138 lines (119 loc) · 2.65 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
theme = "kurokula"
[keys.normal]
A-w = ":toggle soft-wrap.enable"
"A-/" = "toggle_comments"
C-y = ":clipboard-yank"
"]" = { "]" = ":buffer-next" }
"[" = { "[" = ":buffer-previous" }
"{" = "rotate_selection_contents_backward"
"}" = "rotate_selection_contents_forward"
S-left = "select_mode"
S-right = "select_mode"
[keys.select]
C-c = ":clipboard-yank"
S-left = "move_char_left"
S-right = "move_char_right"
S-up = "move_visual_line_up"
S-down = "move_visual_line_down"
[keys.normal.","]
"," = "keep_primary_selection"
"/" = "toggle_comments"
p = ":clipboard-paste-after"
P = ":clipboard-paste-before"
r = ":reload"
R = ":reload-all"
c = { r = ":config-reload" }
f = ":fmt"
[keys.normal."space"]
# close buffer
d = ":bc"
D = ":bc!"
# quit Helix
q = ":q"
Q = ":q!"
# write
s = ":w"
S = ":w!"
v = { o = ":vs", n = ":vnew", q = "wclose" }
H = "jump_view_left"
L = "jump_view_right"
space = "add_newline_below"
up = "add_newline_above"
[keys.normal.g]
j = "goto_next_change"
k = "goto_prev_change"
[keys.insert]
j = { k = "normal_mode" } # exit insert mode
[editor]
bufferline = "multiple"
shell = ["zsh", "-c"]
line-number = "absolute"
cursorline = true
color-modes = true
# auto-pairs = true
popup-border = "all"
jump-label-alphabet = "asdfjkl;ghruvn1234567890"
[editor.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'<' = '>'
[editor.statusline]
separator = "▕ "
mode.normal = "■"
mode.insert = "◎"
mode.select = "▼"
left = ["mode", "selections", "spacer", "spinner", "register", "separator"]
center = [
"version-control",
"read-only-indicator",
"file-name",
"file-modification-indicator",
"file-encoding",
]
right = [
"separator",
"diagnostics",
"file-type",
"file-encoding",
"file-line-ending",
"position",
"position-percentage",
]
[editor.lsp]
display-messages = true
display-inlay-hints = true
[editor.cursor-shape]
normal = "block"
insert = "underline"
select = "bar"
[editor.file-picker]
hidden = false
git-ignore = false
git-global = false
# [editor.whitespace]
# or control each character
[editor.whitespace.render]
space = "none"
tab = "all"
newline = "none"
[editor.whitespace.characters]
# space = "·"
nbsp = "⍽"
tab = "→"
# newline = "⏎"
tabpad = "•" # Tabs will look like "→···" (depending on tab width)
[editor.gutters]
layout = ["diagnostics", "line-numbers", "diff"]
# gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
[editor.gutters.line-numbers]
min-width = 1
[editor.soft-wrap]
enable = true
max-wrap = 25 # increase value to reduce forced mid-word wrapping
max-indent-retain = 0
wrap-indicator = "…" # set wrap-indicator to "" to hide it
[editor.smart-tab]
enable = false
# supersede-menu = true