add nixvim as default EDITOR
This commit is contained in:
parent
9e3bff28fb
commit
b9123f5666
|
@ -16,9 +16,22 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
less
|
||||
wyrdgard.neovim
|
||||
];
|
||||
variables = {
|
||||
EDITOR = "nvim";
|
||||
SUDOEDITOR = "nvim";
|
||||
};
|
||||
};
|
||||
|
||||
wyrdgard.home = {
|
||||
extraOptions = {
|
||||
# Use Neovim for Git diffs.
|
||||
programs.fish.shellAliases.vimdiff = "nvim -d";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ let
|
|||
pkgs.runCommandNoCC "propagated-icon"
|
||||
{
|
||||
passthru = {
|
||||
fileName = cfg.icon.fileName;
|
||||
inherit (fileName);
|
||||
};
|
||||
}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue