helix config
0
config.toml
1# theme = "onedark"
2
3[editor]
4mouse = true
5auto-completion=true
6rulers = [120]
7auto-save=true
8auto-format=true
9text-width=80
10gutters = ["diff", "diagnostics", "line-numbers", "spacer"]
11soft-wrap.enable = true
12soft-wrap.max-indent-retain=80
13scroll-lines = 10
14
15[editor.file-picker]
16hidden = false
17
18[editor.statusline]
19left = ["mode", "spinner", "file-modification-indicator", "read-only-indicator", "version-control", "spacer"]
20center = ["file-name"]
21right = ["diagnostics", "register", "selections", "position", "file-encoding", "file-line-ending", "file-type", "total-line-numbers"]
22separator = "│"
23mode.normal = "LOCKED"
24mode.insert = "WORKING"
25mode.select = "VISUAL SEL"
26
27[editor.lsp]
28enable=true
29auto-signature-help=true
30display-messages = true
31
32[editor.indent-guides]
33render = true
34character = "┊"
35skip-levels = 1
36
37# At most one section each of 'keys.normal', 'keys.insert' and 'keys.select'
38[keys.normal]
39C-s = ":w" # Maps Ctrl-s to the typable command :w which is an alias for :write (save file)
40C-o = ":open ~/.config/helix/config.toml" # Maps Ctrl-o to opening of the helix config file
41"C-S-esc" = "extend_line" # Maps Ctrl-Shift-Escape to extend_line
42"ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode
43A-w = "move_next_sub_word_start"
44A-b= "move_prev_sub_word_start"
45A-e= "move_next_sub_word_end"
46
47[keys.select]
48A-w= "move_next_sub_word_start"
49A-b= "move_prev_sub_word_start"
50A-e = "move_next_sub_word_end"
51
52[keys.insert]
53"A-x" = "normal_mode" # Maps Alt-X to enter normal mode
54j = { k = "normal_mode" } # Maps `jk` to exit insert mode