diff options
| author | ADoyle <adoyle.h@gmail.com> | 2022-11-07 00:42:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-06 17:42:29 +0100 |
| commit | d541e0d6e00a0d89f21e1b0e6fe92c736ac0f83b (patch) | |
| tree | 97e583b055ffb8fbdd5bdb3865a106eae20a2c3c /doc | |
| parent | 30826fcfb8dd8c63cb3d69e72e23b1f037170f35 (diff) | |
feat: the parameter "map" of attach_mappings can be list of modes to create mapping on multiple modes (#2220)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/telescope.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt index b573d65..23f87bf 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -1775,6 +1775,11 @@ ordered from the lowest priority to the highest priority. map("i", "asdf", function(_prompt_bufnr) print "You typed asdf" end) + + map({"i", "n"}, "<C-r>", function(_prompt_bufnr) + print "You typed <C-r>" + end) + -- needs to return true if you want to map default_mappings and -- false if not return true |
