feat(builtin.keymaps): display noremap/buffer indicators and add lhs filter (#2246)

This commit is contained in:
Xavier Young
2022-11-28 03:04:07 +08:00
committed by GitHub
parent 343a2b6b71
commit 4d77743a8e
4 changed files with 32 additions and 7 deletions

View File

@@ -1343,10 +1343,14 @@ builtin.keymaps({opts}) *telescope.builtin.keymaps()*
{opts} (table) options to pass to the picker
Options: ~
{modes} (table) a list of short-named keymap modes to search
(default: { "n", "i", "c", "x" })
{show_plug} (boolean) if true, the keymaps for which the lhs contains
"<Plug>" are also shown (default: true)
{modes} (table) a list of short-named keymap modes to search
(default: { "n", "i", "c", "x" })
{show_plug} (boolean) if true, the keymaps for which the lhs contains
"<Plug>" are also shown (default: true)
{only_buf} (boolean) if true, only show the buffer-local keymaps
(default: false)
{lhs_filter} (function) filter(lhs:string) -> boolean. true if the
keymap should be shown (optional)
builtin.filetypes({opts}) *telescope.builtin.filetypes()*