diff --git a/home/crow/common/core/default.nix b/home/crow/common/core/default.nix index 93ae456..a688c81 100644 --- a/home/crow/common/core/default.nix +++ b/home/crow/common/core/default.nix @@ -23,13 +23,13 @@ in ./nushell.nix ./starship.nix ./terminal.nix + ./helix.nix ]; home.packages = builtins.attrValues { inherit (pkgs) screen ouch - helix ; }; @@ -44,8 +44,8 @@ in SHELL = "zsh"; TERM = "foot"; TERMINAL = "foot"; - VISUAL = "nvim"; - EDITOR = "nvim"; + VISUAL = "hx"; + EDITOR = "hx"; }; }; diff --git a/home/crow/common/core/helix.nix b/home/crow/common/core/helix.nix new file mode 100644 index 0000000..2971dc4 --- /dev/null +++ b/home/crow/common/core/helix.nix @@ -0,0 +1,22 @@ +{ + pkgs, + ... +}: +{ + programs.helix = { + enable = true; + settings = { + theme = "hex_toxic"; + }; + languages = { + language-server.phpactor = with pkgs; { + command = "${phpactor}/bin/phpactor"; + args = ["language-server"]; + }; + language = [{ + name = "php"; + language-servers = ["intelephense" "phpactor"]; + }]; + }; + }; +}