aboutsummaryrefslogtreecommitdiff
path: root/share/home/helix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/home/helix.nix')
-rw-r--r--share/home/helix.nix42
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;
+ };
+ };
+ };
+}