summaryrefslogtreecommitdiff
path: root/dot-config/helix/config.toml
blob: e4971f510650ab8938caea6b1b1ac870cdae99fd (plain)
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
theme = "wallust"

[editor]
line-number = "relative"
default-yank-register = "+"
popup-border = "all"
idle-timeout = 0
completion-timeout = 0
completion-trigger-len = 1
auto-format = true
color-modes = true
rainbow-brackets = true
welcome-screen = false
undercurl = true
mouse = true

[editor.cursor-shape]
insert = "bar"
normal = "block"

[editor.lsp]
display-inlay-hints = true
auto-signature-help = false
# display-progress-messages = true

[icons.vcs]
enabled = true
icon = ""

[icons.mime]
enabled = true
directory = "🖿"
rust = "🦀"
python = "🐍"
go = ""
json = ""

[icons.kind]
enabled = true

[editor.notifications]
enable = true
style = "popup"
position = "top-right"
default-timeout = 5000
padding = 0

[editor.notifications.border]
enable = true

[editor.notifications.emojis]
info = "💡"
warning = "⚠️"
error = "❌"
success = "✅"

[editor.cmdline]
style="bottom" # popup

[editor.cmdline.icons]
search = " "
general = " "
command= " "

[editor.bufferline]
render-mode = "always"
separator = "|"

[editor.statusline]
left = [ "mode", "read-only-indicator", "version-control", "function-name", "spinner"]
right = ["diagnostics", "register", "position", "position-percentage", "file-encoding"]

mode.normal = "N"
mode.insert = "I"
mode.select = "V"

diagnostics = ["warning", "error"]
workspace-diagnostics = ["warning", "error"]

[editor.whitespace.render]
space = "none"
tab = "all"
nbsp = "none"
nnbsp = "none"
newline = "none"

[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
nnbsp = "␣"
tab = "→"
newline = "⏎"
tabpad = "·" # Tabs will look like "→···" (depending on tab width)

[editor.indent-guides]
render = true

[editor.smart-tab]
enable = false
supersede-menu = true

[editor.file-picker]
hidden = false # enables ignoring hidden files
parents = true # enables reading ignore files from parent directories
ignore = true # enables reading .ignore files
git-ignore = true # enables reading .gitignore files
git-global = true
git-exclude = true

[keys.normal]
tab = "move_parent_node_end"
S-tab = "move_parent_node_start"
d = "delete_selection_noyank"
c = "change_selection_noyank"
A-k = "select_prev_sibling"
A-j = "select_next_sibling"

[keys.normal." "]
q = ":quit"
c = ":buffer-close"
# tab = "insert_tab"
w = ":write"
"," = "code_action"
1 = ":goto-buffer 1"
2 = ":goto-buffer 2"
3 = ":goto-buffer 3"
4 = ":goto-buffer 4"
5 = ":goto-buffer 5"
6 = ":goto-buffer 6"
7 = ":goto-buffer 7"
8 = ":goto-buffer 8"
9 = ":goto-buffer 9"
0 = ":goto-buffer 0"

[keys.normal." "."g"]
g = "changed_file_picker"
b = ":! git show --no-patch --format='%%h (%%an: %%ar): %%s' $(git blame -p %{buffer_name} -L%{cursor_line},+1 | head -1 | cut -d' ' -f1)"

[keys.insert]
C-f = "goto_next_tabstop"
C-S-f = "goto_prev_tabstop"
C-l = "signature_help"