aboutsummaryrefslogtreecommitdiffstats
path: root/home/helix/default.nix
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2024-05-23 09:44:38 +0300
committerPetri Hienonen <petri.hienonen@gmail.com>2024-05-23 09:44:38 +0300
commit75c2af4aedd2ac5c2cfc74b346625fa4b265541d (patch)
treef0a58a6c699dc305ae8f506a806761ad7e57029c /home/helix/default.nix
downloadnixos-75c2af4aedd2ac5c2cfc74b346625fa4b265541d.tar.zst
Nixos
Diffstat (limited to 'home/helix/default.nix')
-rw-r--r--home/helix/default.nix35
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";
+ };
+ };
+ };
+}