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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user