From 75c2af4aedd2ac5c2cfc74b346625fa4b265541d Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 23 May 2024 09:44:38 +0300 Subject: Nixos --- home/helix/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 home/helix/default.nix (limited to 'home/helix') 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"; + }; + }; + }; +} -- cgit v1.2.3-70-g09d2