personal nixos config and packages
1{
2 writers,
3 mkWrapper,
4 helix,
5}:
6let
7 cfg = writers.writeTOML "config.toml" {
8 theme = "zed_onedark";
9
10 keys.normal = {
11 tab = "goto_next_buffer";
12 S-tab = "goto_previous_buffer";
13 };
14
15 editor = {
16 bufferline = "multiple";
17 idle-timeout = 5;
18 completion-timeout = 5;
19 end-of-line-diagnostics = "hint";
20 inline-diagnostics.cursor-line = "error";
21
22 lsp.display-inlay-hints = true;
23
24 cursor-shape = {
25 insert = "bar";
26 normal = "block";
27 select = "underline";
28 };
29
30 file-picker = {
31 hidden = true;
32 ignore = true;
33 };
34 };
35 };
36in
37mkWrapper {
38 pkg = helix;
39 hx.prependFlags = [
40 "--config"
41 "${cfg}"
42 ];
43}