feat(builtin): implement filter for keymaps (#2462)
This commit is contained in:
@@ -353,7 +353,8 @@ builtin.registers = require_on_exported_call("telescope.builtin.__internal").reg
|
||||
---@field modes table: a list of short-named keymap modes to search (default: { "n", "i", "c", "x" })
|
||||
---@field show_plug boolean: if true, the keymaps for which the lhs contains "<Plug>" are also shown (default: true)
|
||||
---@field only_buf boolean: if true, only show the buffer-local keymaps (default: false)
|
||||
---@field lhs_filter function: filter(lhs:string) -> boolean. true if the keymap should be shown (optional)
|
||||
---@field lhs_filter function: filter(lhs:string) -> boolean. true for keymap.lhs if the keymap should be shown (optional)
|
||||
---@field filter function: filter(km:keymap) -> boolean. true for the keymap if it should be shown (optional)
|
||||
builtin.keymaps = require_on_exported_call("telescope.builtin.__internal").keymaps
|
||||
|
||||
--- Lists all available filetypes, sets currently open buffer's filetype to selected filetype in Telescope on `<cr>`
|
||||
|
||||
Reference in New Issue
Block a user