pinwheel: Set git editor to vim

This commit is contained in:
Alexander Heldt
2023-10-05 22:39:02 +02:00
parent b769bb8dae
commit df967b99b4
2 changed files with 12 additions and 4 deletions

View File

@@ -2,9 +2,6 @@
name = Alexander Heldt
email = me@alexanderheldt.se
[core]
editor = "vim"
[url "git@github.com:"]
insteadOf = https://github.com/

View File

@@ -1,4 +1,7 @@
{ ... }:
{ lib, config, ... }:
let
gitEnabled = config.mod.git.enable;
in
{
home-manager.users.alex = {
programs.vim = {
@@ -8,5 +11,13 @@
set noswapfile
'';
};
programs.git = lib.mkIf gitEnabled {
extraConfig = {
core = {
editor = "vim";
};
};
};
};
}