From f89e0bcec77796663e02a8aff137351b9fc9ff6f Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Fri, 5 Dec 2025 15:41:53 +0000 Subject: [PATCH] helix: add and configure --- home/helix.nix | 27 +++++++++++++++++++++++++++ home/profiles.nix | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 home/helix.nix diff --git a/home/helix.nix b/home/helix.nix new file mode 100644 index 0000000..21dc689 --- /dev/null +++ b/home/helix.nix @@ -0,0 +1,27 @@ +{ ... }: { + programs.helix = { + enable = true; + settings = { + theme = "monokai_pro"; + editor."soft-wrap".enable = true; + }; + languages = { + language-server.basedpyright = { + command = "basedpyright-langserver"; + args = ["--stdio"]; + }; + language = [{ + name = "python"; + roots = [ + "pyproject.toml" + "setup.py" + "poetry.lock" + ".git" + ]; + language-servers = [{ + name = "basedpyright"; + }]; + }]; + }; + }; +} diff --git a/home/profiles.nix b/home/profiles.nix index 7a00274..7a1e8d1 100644 --- a/home/profiles.nix +++ b/home/profiles.nix @@ -3,7 +3,7 @@ default = ./default.nix; # A machine for development dev = {...}: { - imports = [./git.nix ./vim.nix ./vim-dev]; + imports = [./git.nix ./vim.nix ./vim-dev ./helix.nix]; }; # A machine for dev with a GUI # TODO: detect this automatically somehow?