Skip to content

Instantly share code, notes, and snippets.

@kborling
Last active February 18, 2025 14:30
Show Gist options
  • Save kborling/2cff632d27b79741736729093bf31c89 to your computer and use it in GitHub Desktop.
Save kborling/2cff632d27b79741736729093bf31c89 to your computer and use it in GitHub Desktop.
Helix config
theme = "ayu_dark"
[editor]
true-color = true
color-modes = true
auto-pairs = false
[editor.lsp]
display-messages = true
display-inlay-hints = true
[editor.search]
smart-case = true
[editor.file-picker]
hidden = false
[editor.cursor-shape]
insert = "bar"
[keys.normal]
C-a = "goto_first_nonwhitespace"
C-e = "goto_line_end_newline"
ret = ["move_line_down", "goto_first_nonwhitespace"]
C-h = "select_prev_sibling"
C-j = "shrink_selection"
C-k = "expand_selection"
C-l = "select_next_sibling"
i = [
"insert_mode",
"collapse_selection",
]
a = [
"append_mode",
"collapse_selection",
]
"," = { o = ":config-open", r = ":config-reload", f = "file_picker_in_current_buffer_directory" }
esc = ["collapse_selection", "keep_primary_selection"]
space = { "t" = { t = [":new", ":insert-output lazygit", ":buffer-close!", ":redraw"] } }
[keys.insert]
esc = ["collapse_selection", "normal_mode"]
C-c = ["collapse_selection", "normal_mode"]
C-g = ["collapse_selection", "normal_mode"]
C-space = "completion"
# Additional movement
C-a = "goto_first_nonwhitespace"
C-e = "goto_line_end_newline"
C-n = "move_line_down"
C-p = "move_line_up"
C-b = "move_char_left"
C-f = "move_char_right"
A-b = "move_prev_word_end"
A-f = "move_next_word_start"
"A-<" = "goto_file_start"
"A->" = "goto_file_end"
[keys.select]
tab = [
"insert_mode",
"collapse_selection",
] # tab is read by most terminal editors as "C-i"
C-a = "goto_first_nonwhitespace"
C-e = "goto_line_end_newline"
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment