Skip to content

Commit

Permalink
neomutt: added missing sort options (#6283)
Browse files Browse the repository at this point in the history
* neovim: add valid sort options

Neomutt added a new prefix for sort options in 2022.
Added the new possible prefixes to the neomutt module.
  • Loading branch information
bbaserdem authored Jan 7, 2025
1 parent 20665c6 commit 5c43023
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/programs/neomutt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@ in {
sort = mkOption {
# allow users to choose any option from sortOptions, or any option prefixed with "reverse-"
type = types.enum
(sortOptions ++ (map (option: "reverse-" + option) sortOptions));
(builtins.concatMap (_pre: map (_opt: _pre + _opt) sortOptions) [
""
"reverse-"
"last-"
"reverse-last-"
]);
default = "threads";
description = "Sorting method on messages.";
};
Expand Down

0 comments on commit 5c43023

Please sign in to comment.