-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
72 lines (53 loc) · 1.41 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
theme = "ayu_dark"
[editor]
line-number = "relative"
mouse = true
auto-completion=true
auto-save=true
auto-format=true
text-width=80
gutters = ["diff", "diagnostics", "line-numbers", "spacer"]
bufferline = "always"
[editor.statusline]
left = ["mode", "spinner", "file-modification-indicator", "read-only-indicator"]
center = ["file-name"]
right = ["diagnostics", "register", "selections", "position", "file-encoding", "file-line-ending", "file-type"]
separator = "│"
mode.normal = "LOCKED"
mode.insert = "EDITING"
mode.select = "VISUAL SEL"
[editor.lsp]
enable=true
auto-signature-help=true
display-messages = true
[editor.indent-guides]
render = true
character = "┊"
skip-levels = 1
[keys.normal]
C-r = ":w" # Ctrl + r to save/write
# movement with wasd keys
w = "move_line_up"
a = "move_char_left"
# select chars with shift + wasd
C-w = "extend_line_up"
C-a = "extend_char_left"
C-s = "extend_line_down"
C-d = "extend_char_right"
# assign Ctrl+"/" to comment and Ctrl+c to save/write
"C-7" = "toggle_comments"
C-c = "yank_to_clipboard"
g = { a = "code_action" }
# write and quit
C-q = ":wq"
[keys.insert]
# for me saving while editing is important, so I'll assign writing the file on here too
C-r = ":w"
# selecting text
C-w = "extend_line_up"
C-a = "extend_char_left"
C-s = "extend_line_down"
C-d = "extend_char_right"
# assign comment and write to same as normal mode
"C-7" = "toggle_comments"
C-c = "yank_to_clipboard"