nix-files/hosts/common/programs/helix.nix

23 lines
649 B
Nix
Raw Normal View History

2023-07-04 03:28:54 +00:00
# Helix text editor
# debug log: `~/.cache/helix/helix.log`
# binary name is `hx`
{ ... }:
{
sane.programs.helix = {
# 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.byStore.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
};
}