helix-config/config.toml
2025-06-04 12:35:56 +02:00

90 lines
2.1 KiB
TOML

theme = "rose_pine_moon"
[editor]
mouse = false
auto-completion = true
path-completion = true
auto-format = true
true-color = true
bufferline = "always"
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.lsp]
enable = true
auto-signature-help = true
display-messages = true
[editor.whitespace.render]
space = "all"
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)
[keys.normal]
C-g = [
":write-all",
":new",
":insert-output lazygit",
":buffer-close!",
":redraw",
":reload-all"
]
G = "@ge"
H = "goto_line_start"
L = "goto_line_end"
A-j = "@<C-d>"
A-k = "@<C-u>"
"space" = { '"' = "vsplit", '%' = "hsplit" }
C-h = "jump_view_left"
C-j = "jump_view_down"
C-k = "jump_view_up"
C-l = "jump_view_right"
"tab" = "goto_next_buffer"
"S-tab" = "goto_previous_buffer"
# Stolen stuff for being more vim like
# Undoing the 'd' + motion commands restores the selection which is annoying
u = ["undo", "collapse_selection"]
D = "@vgld"
[keys.insert]
C-h = "move_char_left"
C-j = "move_line_down"
C-k = "move_line_up"
C-l = "move_char_right"
[keys.select]
# Muscle memory
"{" = ["extend_to_line_bounds", "goto_prev_paragraph"]
"}" = ["extend_to_line_bounds", "goto_next_paragraph"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
C = ["goto_line_start", "extend_to_line_bounds", "change_selection"]
"%" = "match_brackets"
u = ["switch_to_lowercase", "collapse_selection", "normal_mode"]
U = ["switch_to_uppercase", "collapse_selection", "normal_mode"]
# Clipboards over registers ye ye
d = ["yank_main_selection_to_clipboard", "delete_selection"]
x = ["yank_main_selection_to_clipboard", "delete_selection"]
y = ["yank_main_selection_to_clipboard", "normal_mode", "flip_selections", "collapse_selection"]
Y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "goto_line_start", "collapse_selection", "normal_mode"]
p = "replace_selections_with_clipboard" # No life without this
P = "paste_clipboard_before"