neomutt: added missing sort options (#6283)

* neovim: add valid sort options

Neomutt added a new prefix for sort options in 2022.
Added the new possible prefixes to the neomutt module.
This commit is contained in:
Batuhan Baserdem 2025-01-07 14:16:55 -05:00 committed by GitHub
parent 20665c6efa
commit 5c4302313d
Failed to generate hash of commit

View file

@ -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.";
};