diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
| commit | 75c2af4aedd2ac5c2cfc74b346625fa4b265541d (patch) | |
| tree | f0a58a6c699dc305ae8f506a806761ad7e57029c /home/helix | |
| download | nixos-75c2af4aedd2ac5c2cfc74b346625fa4b265541d.tar.zst | |
Nixos
Diffstat (limited to 'home/helix')
| -rw-r--r-- | home/helix/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/home/helix/default.nix b/home/helix/default.nix new file mode 100644 index 0000000..2438703 --- /dev/null +++ b/home/helix/default.nix @@ -0,0 +1,35 @@ +{ + inputs, + pkgs, + ... +}: { + programs.helix = { + enable = true; + settings = { + theme = "catppuccin_mocha"; + editor = { + color-modes = true; + cursorline = true; + cursor-shape = { + insert = "bar"; + normal = "block"; + select = "underline"; + }; + indent-guides.render = true; + lsp.display-inlay-hints = true; + statusline.center = ["position-percentage"]; + true-color = true; + whitespace.characters = { + newline = "↴"; + tab = "⇥"; + }; + }; + + keys.normal.space.u = { + f = ":format"; # format using LSP formatter + w = ":set whitespace.render all"; + W = ":set whitespace.render none"; + }; + }; + }; +} |
