feat: mapping and options to sort entries in help window (#2482)

* feat: add option to sort entries in help window

* stylua

* Add keymap to toggle sorting methods

* Bug fix

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Azad
2023-10-22 23:57:49 +02:00
committed by GitHub
parent c2194e940c
commit 78a9ca5ed6
3 changed files with 68 additions and 22 deletions

View File

@@ -588,6 +588,9 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
threshold = vim.log.levels.INFO,
absolute_path = true,
},
help = {
sort_by = "key",
},
ui = {
confirm = {
remove = true,
@@ -667,6 +670,9 @@ local ACCEPTED_STRINGS = {
bookmarks_placement = { "before", "after", "signcolumn" },
},
},
help = {
sort_by = { "key", "desc" },
},
}
local function validate_options(conf)