2024-06-26 10:52:22 -05:00
|
|
|
# https://docs.helix-editor.com/configuration.html
|
|
|
|
|
|
|
|
|
|
# https://theari.dev/blog/enhanced-helix-config/
|
|
|
|
|
|
|
|
|
|
[editor]
|
|
|
|
|
# Show currently open buffers, only when more than one exists.
|
|
|
|
|
bufferline = "multiple"
|
|
|
|
|
# Highlight all lines with a cursor
|
|
|
|
|
cursorline = true
|
|
|
|
|
# Use relative line numbers
|
|
|
|
|
line-number = "relative"
|
|
|
|
|
# Show a ruler at column 120
|
|
|
|
|
rulers = [120]
|
|
|
|
|
# Force the theme to show colors
|
|
|
|
|
true-color = true
|
|
|
|
|
|
|
|
|
|
[editor.cursor-shape]
|
|
|
|
|
insert = "bar"
|
|
|
|
|
normal = "block"
|
|
|
|
|
select = "underline"
|
|
|
|
|
|
|
|
|
|
[editor.indent-guides]
|
|
|
|
|
character = "╎"
|
|
|
|
|
render = true
|
|
|
|
|
|
|
|
|
|
[editor.lsp]
|
|
|
|
|
# Disable automatically popups of signature parameter help
|
|
|
|
|
auto-signature-help = false
|
|
|
|
|
# Show LSP messages in the status line
|
|
|
|
|
display-messages = true
|
|
|
|
|
|
|
|
|
|
[editor.statusline]
|
2024-06-26 11:47:46 -05:00
|
|
|
#left = ["mode", "spinner", "version-control", "file-name"]
|
2024-06-26 10:52:22 -05:00
|
|
|
|
|
|
|
|
[keys.normal]
|
2024-06-26 20:53:09 -05:00
|
|
|
#"A-," = "goto_previous_buffer"
|
|
|
|
|
#"A-." = "goto_next_buffer"
|
|
|
|
|
#"A-w" = ":buffer-close"
|
|
|
|
|
#"A-/" = "repeat_last_motion"
|
2024-06-26 20:54:25 -05:00
|
|
|
A-w = [":toggle soft-wrap.enable", ":redraw"]
|
2024-08-24 13:07:46 -05:00
|
|
|
C-s = ":w"
|
2024-06-26 10:52:22 -05:00
|
|
|
|
|
|
|
|
[keys.insert]
|
2024-06-26 13:48:07 -05:00
|
|
|
|
|
|
|
|
# https://docs.helix-editor.com/remapping.html
|
2024-06-26 10:52:22 -05:00
|
|
|
C-s = ":w" # Maps Ctrl-s to the typable command :w which is an alias for :write (save file)
|
2024-06-26 13:48:07 -05:00
|
|
|
|
2024-06-26 11:58:26 -05:00
|
|
|
#A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]
|
|
|
|
|
#A-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"]
|
2024-06-26 12:00:27 -05:00
|
|
|
#"A-down" = [ "extend_to_line_bounds", "extend_line_below", "split_selection_on_newline", "rotate_selection_contents_forward", "rotate_selections_backward", "keep_primary_selection" ]
|
|
|
|
|
#"A-up" = [ "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "rotate_selection_contents_forward", "keep_primary_selection" ]
|
2024-06-26 13:48:07 -05:00
|
|
|
|
|
|
|
|
# https://github.com/helix-editor/helix/discussions/5764
|
|
|
|
|
A-down = [ "keep_primary_selection", "move_line_down", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "move_line_down", "insert_mode" ]
|
|
|
|
|
A-up = [ "keep_primary_selection", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "insert_mode" ]
|
|
|
|
|
|
2024-06-26 20:48:53 -05:00
|
|
|
A-right = [ "move_next_word_end" ]
|
2024-06-26 13:48:07 -05:00
|
|
|
A-left = [ "move_prev_word_start" ]
|
|
|
|
|
|
2024-06-26 20:48:53 -05:00
|
|
|
# https://github.com/helix-editor/helix/issues/136
|
2024-06-26 20:54:25 -05:00
|
|
|
A-w = [":toggle soft-wrap.enable", ":redraw"]
|