diff options
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"; + }; + }; + }; +} |
