view dot_config/helix/config.toml.tmpl @ 840:f3e87577dd3a

fix: sort keys from template dicts to determistically generate scripts From http://masterminds.github.io/sprig/dicts.html > The keys function will return a list of all of the keys in one or more dict types. > Since a dictionary is unordered, the keys will not be in a predictable order. > They can be sorted with sortAlpha. This results in a different ordering of commands in the generated scripts which break the hashing in chezmoi to determine whether the scripts needs to be re-run.
author zegervdv <zegervdv@me.com>
date Fri, 02 Feb 2024 17:44:49 +0100
parents c7a17b231dd9
children c772355fedfb
line wrap: on
line source

{{ if .dark -}}
theme = "catppuccin_mocha"
{{ else -}}
theme = "tutticolori"
{{ end }}

[editor]
line-number = "relative"
cursorline = true

[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"

[editor.indent-guides]
render = true
skip-levels = 1

[editor.statusline]
right = ["diagnostics", "version-control", "selections", "register", "position", "position-percentage"]

[keys.insert]
C-f = "move_char_right"

[keys.normal]
x = "extend_line"

[keys.normal."space"]
o = "file_picker_in_current_buffer_directory"

[keys.normal.g]
l = ["collapse_selection", "extend_to_line_end"]
h = ["collapse_selection", "extend_to_line_start"]
s = ["collapse_selection", "select_mode", "goto_first_nonwhitespace", "exit_select_mode"]