-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefault_config.toml
More file actions
197 lines (178 loc) · 5.09 KB
/
default_config.toml
File metadata and controls
197 lines (178 loc) · 5.09 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# This is a sample configuration file for red.
#
# The configuration file is a TOML file. The configuration file is read from
# the following locations:
#
# 1. $XDG_CONFIG_HOME/red/config.toml
# 2. $HOME/.config/red/config.toml
#
# Name of the VSCode theme to use. The theme file should be present in the
# themes directory: $XDG_CONFIG_HOME/red/themes or $HOME/.config/red/themes
theme = "mocha.json"
# The number of lines to scroll when using the mouse wheel
mouse_scroll_lines = 3
# The full path to the log file. If the log file is not present, red will
# create it. If the log file is present, red will append to it.
# This setting is optional, if not present, red will not log anything.
log_file = "/tmp/red.log"
# When this setting is either absent or set to true, red will show
# diagnostics in the log file. When set to false, red will not show
# them.
#show_diagnostics = false
# Language servers are selected by file extension. The built-in defaults cover
# Rust, Markdown, JavaScript/TypeScript, JSON, TOML, YAML, and Python. You can
# override or add servers here. Existing single-language configs still work:
#
# [lsp.servers.rust]
# command = "rust-analyzer"
# args = ["-v"]
# language_id = "rust"
# file_extensions = ["rs"]
# root_markers = ["Cargo.toml", ".git"]
#
# Servers that handle multiple language ids can use document selectors:
#
# [lsp.servers.typescript]
# command = "typescript-language-server"
# args = ["--stdio"]
# root_markers = ["package.json", "tsconfig.json", "jsconfig.json", ".git"]
#
# [[lsp.servers.typescript.documents]]
# language_id = "typescript"
# file_extensions = ["ts"]
#
# [[lsp.servers.typescript.documents]]
# language_id = "javascript"
# file_extensions = ["js", "mjs", "cjs"]
[keys.insert]
Enter = "InsertNewLine"
Backspace = "DeletePreviousChar"
Tab = "InsertTab"
Esc = { EnterMode = "Normal" }
[keys.normal]
"w" = [ "MoveToNextWord" ]
"b" = [ "MoveToPreviousWord" ]
"o" = [ { EnterMode = "Insert" }, "InsertLineBelowCursor" ]
"O" = [ { EnterMode = "Insert" }, "InsertLineAtCursor" ]
"G" = "MoveToBottom"
"g" = { "g" = "MoveToTop", "d" = "GoToDefinition" }
"u" = "Undo"
"Ctrl-r" = "Redo"
"Down" = "MoveDown"
"Left" = "MoveLeft"
"Right" = "MoveRight"
"Up" = "MoveUp"
"k" = "MoveUp"
"j" = "MoveDown"
"h" = "MoveLeft"
"l" = "MoveRight"
"0" = "MoveToLineStart"
"Home" = "MoveToLineStart"
"$" = "MoveToLineEnd"
"End" = "MoveToLineEnd"
"H" = "MoveToFirstLineChar"
"L" = "MoveToLastLineChar"
"Ctrl-b" = "PageUp"
"Ctrl-f" = "PageDown"
"Ctrl-o" = "JumpBack"
"Tab" = "JumpForward"
"x" = "DeleteCharAtCursorPos"
"z" = { "z" = "MoveLineToViewportCenter" }
"n" = [ "FindNext" ]
"N" = [ "FindPrevious" ]
"a" = [ { EnterMode = "Insert" }, "MoveRight" ]
"A" = [ "MoveToLineEnd", "MoveRight", { EnterMode = "Insert" } ]
"i" = { EnterMode = "Insert" }
"I" = [ { EnterMode = "Insert" }, "MoveToFirstLineChar" ]
";" = { EnterMode = "Command" }
":" = { EnterMode = "Command" }
"/" = { EnterMode = "Search" }
# "|" = "Split"
# "_" = "SplitVertical"
# Window management (uncomment to enable)
# "Ctrl-w" = {
# "h" = "MoveWindowLeft",
# "j" = "MoveWindowDown",
# "k" = "MoveWindowUp",
# "l" = "MoveWindowRight",
# "w" = "NextWindow",
# "W" = "PreviousWindow",
# "p" = "PreviousWindow",
# "s" = "SplitHorizontal",
# "v" = "SplitVertical",
# "-" = "SplitHorizontal",
# "|" = "SplitVertical",
# "c" = "CloseWindow",
# "q" = "CloseWindow",
# "Ctrl-w" = "NextWindow",
# "+" = { ResizeWindowDown = 1 },
# "<" = { ResizeWindowLeft = 1 },
# ">" = { ResizeWindowRight = 1 },
# "=" = "BalanceWindows",
# "_" = "MaximizeWindow"
# }
"Ctrl-p" = "FilePicker"
"Ctrl-z" = "Suspend"
"Ctrl-e" = { PluginCommand = "NeoTree" }
"K" = "Hover"
# "W" = "ToggleWrap"
# "L" = "DecreaseLeft"
# "R" = "IncreaseLeft"
"v" = { EnterMode = "Visual" }
"V" = { EnterMode = "VisualLine" }
"Ctrl-v" = { EnterMode = "VisualBlock" }
"p" = "Paste"
"P" = "PasteBefore"
[keys.normal.">"]
">" = "IndentLine"
[keys.normal."<"]
"<" = "UnindentLine"
[keys.normal." "]
" " = "NextBuffer"
"n" = "NextBuffer"
"p" = "PreviousBuffer"
"b" = { PluginCommand = "BufferPicker" }
[keys.normal."d"]
"d" = "DeleteCurrentLine"
"w" = "DeleteWord"
"b" = "DumpBuffer"
"i" = "DumpDiagnostics"
"c" = "DumpCapabilities"
"h" = "DumpHistory"
"l" = "ViewLogs"
"p" = "ListPlugins"
[keys.search]
Esc = { EnterMode = "Normal" }
[keys.command]
Esc = { EnterMode = "Normal" }
[keys.visual]
Esc = { EnterMode = "Normal" }
"k" = "MoveUp"
"j" = "MoveDown"
"h" = "MoveLeft"
"l" = "MoveRight"
"$" = "MoveToLineEnd"
"End" = "MoveToLineEnd"
"y" = [ "Yank", { EnterMode = "Normal" } ]
"x" = [ "Delete", { EnterMode = "Normal" } ]
"p" = [ "Paste", { EnterMode = "Normal" } ]
"w" = "MoveToNextWord"
"b" = "MoveToPreviousWord"
"I" = "InsertBlock"
# TODO: "i" = "SelectInside"
# TODO: "o" = "SelectOutside"
# TODO: "c" = "ChangeBlock"
# TODO: "r" = "ReplaceBlock"
[keys.visual_block]
Esc = { EnterMode = "Normal" }
"$" = "MoveToLineEnd"
"End" = "MoveToLineEnd"
[keys.visual_line]
Esc = { EnterMode = "Normal" }
[commands]
"write" = "Save"
"quit" = "Quit"
[plugins]
buffer_picker = "buffer_picker.js"
neotree = "neotree.js"
session_restore = "session_restore.js"