plugins/neogit: add graph_style option

This commit is contained in:
Velnbur 2024-01-24 17:05:56 +02:00 committed by Gaétan Lepage
parent 85ee07abde
commit ddce82d0d1

View file

@ -65,6 +65,11 @@ in {
default = null; default = null;
}; };
graphStyle = helpers.defaultNullOpts.mkEnumFirstDefault ["ascii" "unicode"] ''
"ascii" is the graph the git CLI generates
"unicode" is the graph like https://github.com/rbong/vim-flog
'';
commitPopup = mkOption { commitPopup = mkOption {
description = "Commit popup configuration"; description = "Commit popup configuration";
type = types.submodule { type = types.submodule {
@ -218,6 +223,7 @@ in {
disable_builtin_notifications = disableBuiltinNotifications; disable_builtin_notifications = disableBuiltinNotifications;
use_magit_keybindings = useMagitKeybindings; use_magit_keybindings = useMagitKeybindings;
commit_popup = commitPopup; commit_popup = commitPopup;
graph_style = graphStyle;
}; };
in in
mkIf cfg.enable { mkIf cfg.enable {