-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
57 lines (51 loc) · 1.87 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
theme = "rose_pine_loud"
[editor]
scrolloff = 100
# center cursor vertically
cursorline = true
# highlight current line
bufferline = "always"
# show open buffers at top of window
insert-final-newline = false
# don't insert an empty line on save
[editor.statusline]
mode.select = "VIS"
# display text "VIS" in select mode (from vim)
center = ["primary-selection-length", "spacer", "position-percentage", "spacer", "total-line-numbers"]
# customize bottom ribbon
[editor.cursor-shape]
# customize cursors in different modes
normal = "block"
select = "underline"
insert = "bar"
[editor.auto-save]
focus-lost = true
# save on window change
after-delay.enable = true
# save after 3000ms
[keys.normal]
# hotkeys in normal mode
"ret" = "insert_mode"
# 'return' key enters insert mode
"backspace" = "insert_mode"
# 'backspace' key enters insert mode
C-k = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before", "collapse_selection", "goto_line_start"]
# move current line up one line
C-j = ["extend_to_line_bounds", "delete_selection", "paste_after", "collapse_selection", "goto_line_start"]
# move current line down one line
a = ["move_char_right", "insert_mode"]
# insert after (override default, which inserts after + selects)
K = "move_line_up"
# move textual (instead of visual) line
J = "move_line_down"
# move textual (instead of visual) line
[keys.insert]
# hotkeys in insert mode
q = { q = "normal_mode", o = "open_below", v = "select_mode" }
# 'qq' -> return to normal mode
# 'qo' -> start line below
# 'qv' -> switch to select mode
C-k = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before", "collapse_selection", "goto_line_start"]
# move current line up one line
C-j = ["extend_to_line_bounds", "delete_selection", "paste_after", "collapse_selection", "goto_line_start"]
# move current line down one line