2022-12-19 09:04:27 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
alejandra = lib.getExe inputs.alejandra.packages.${system}.default;
|
|
|
|
nil = lib.getExe inputs.nil.packages.${system}.default;
|
|
|
|
in {
|
2022-12-07 23:52:15 +00:00
|
|
|
programs.helix = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.helix.packages."${system}".helix;
|
2022-12-19 09:04:27 +00:00
|
|
|
settings = {
|
|
|
|
keys.normal = {
|
|
|
|
C-p = "file_picker";
|
|
|
|
C-b = "buffer_picker";
|
2022-12-08 20:02:21 +00:00
|
|
|
};
|
2022-12-19 09:04:27 +00:00
|
|
|
};
|
|
|
|
languages = [
|
|
|
|
{
|
|
|
|
name = "nix";
|
|
|
|
auto-format = true;
|
|
|
|
language-server = {command = nil;};
|
|
|
|
formatter = {
|
|
|
|
command = alejandra;
|
|
|
|
args = ["-q"];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2022-12-07 23:52:15 +00:00
|
|
|
};
|
|
|
|
}
|