diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
| commit | f559671cae7b02526dedf7923b135c09e0d095d5 (patch) | |
| tree | 0f273fb13211c4aa7cae2add41e3aa2b1c6d7785 /share/home/helix.nix | |
Inital commit ;P
Diffstat (limited to 'share/home/helix.nix')
| -rw-r--r-- | share/home/helix.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/share/home/helix.nix b/share/home/helix.nix new file mode 100644 index 0000000..c7b7cad --- /dev/null +++ b/share/home/helix.nix @@ -0,0 +1,42 @@ +{ pkgs, ... }: { + programs.helix = { + enable = true; + defaultEditor = true; + + extraPackages = with pkgs; [ + rust-analyzer + rustfmt + nil + nixfmt + python311Packages.python-lsp-server + clang-tools + black + ]; + + settings = { + theme = "tokyonight"; + editor = { + line-number = "relative"; + cursor-shape = { + insert = "bar"; + normal = "block"; + select = "underline"; + }; + whitespace.render = { + space = "all"; + tab = "all"; + newline = "none"; + }; + whitespace.characters = { + space = "·"; + nbsp = "⍽"; + tab = "→"; + newline = "⏎"; + tabpad = "·"; # Tabs will look like "→···" (depending on tab width) + }; + cursorline = true; + lsp.display-messages = true; + }; + }; + }; +} |
