NGDF/dots/helix/config.toml

56 lines
1.1 KiB
TOML

theme = "sheep"
[editor]
line-number = "relative"
mouse = false
auto-pairs = true
auto-format = true
auto-completion = true
bufferline = "always"
color-modes = true
[editor.indent-guides]
render = true
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "block"
[editor.statusline]
left = ["mode", "spinner"]
center = ["file-name"]
right = ["diagnostics", "position", "file-encoding", "file-type"]
separator = "|"
[editor.statusline.mode]
normal = "N"
insert = "I"
select = "S"
[keys.normal]
# Toggle between buffers.
C-h = ":buffer-previous"
C-l = ":buffer-next"
C-o = ":config-open"
C-r = ":config-reload"
# Quicksave
C-z = ":write"
# Strip trailing whitespace.
F1 = ["select_all",
":pipe sed 's/[[:space:]]*$//'",
"collapse_selection"]
# Markdown / blog stuff.
F5 = ":insert-output date --iso-8601=seconds" # Hugo wants ISO8601/RFC3339
F6 = ":insert-output date '+%F'"
F7 = ":insert-output date '+%a %F'"
# Homing
#"A-," = { "," = "search" } # Create homing key for %!%!
#"A-," = { "m" = ":append-output python ~/.scripts/testing/pymark.py numlist 20 %!%!" }
A-b = { l = ":sh xelatex *tex > /dev/null" }