2023-07-04 03:28:54 +00:00
|
|
|
# Helix text editor
|
|
|
|
# debug log: `~/.cache/helix/helix.log`
|
|
|
|
# binary name is `hx`
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
sane.programs.helix = {
|
2023-07-07 11:05:13 +00:00
|
|
|
# grammars need to be persisted when developing them
|
|
|
|
# - `hx --grammar fetch` and `hx --grammar build`
|
|
|
|
# but otherwise, they ship as part of HELIX_RUNTIME, in the nix store
|
|
|
|
# persist.plaintext = [ ".config/helix/runtime/grammars" ];
|
2023-07-08 00:27:12 +00:00
|
|
|
fs.".config/helix/config.toml".symlink.text = ''
|
|
|
|
# docs: <https://docs.helix-editor.com/configuration.html>
|
|
|
|
[editor.soft-wrap]
|
|
|
|
enable = true
|
2023-07-08 00:54:51 +00:00
|
|
|
|
|
|
|
[editor.whitespace.render]
|
|
|
|
space = "all"
|
|
|
|
tab = "all"
|
|
|
|
newline = "none"
|
2023-07-08 00:27:12 +00:00
|
|
|
'';
|
2023-07-04 03:28:54 +00:00
|
|
|
};
|
|
|
|
}
|