add nixvim as default EDITOR
This commit is contained in:
parent
4cd7fe6cfd
commit
326bd3cb03
3 changed files with 21 additions and 8 deletions
|
@ -16,9 +16,22 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
less
|
||||
wyrdgard.neovim
|
||||
];
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue