diff options
| author | Xavier Young <45989017+younger-1@users.noreply.github.com> | 2022-11-28 03:04:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 20:04:07 +0100 |
| commit | 4d77743a8ec4d19b3c47e0d04f3e88f1a933698e (patch) | |
| tree | 891e3e54d184c00cd07a0e1ae97a7dab92fe5a95 /lua/telescope/builtin/init.lua | |
| parent | 343a2b6b712eb42ae5a319d484508cc5e9e483b0 (diff) | |
feat(builtin.keymaps): display noremap/buffer indicators and add lhs filter (#2246)
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index 4c069f0..23f3e4e 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -331,6 +331,8 @@ builtin.registers = require_on_exported_call("telescope.builtin.__internal").reg ---@param opts table: options to pass to the picker ---@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) 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>` |
