From d541e0d6e00a0d89f21e1b0e6fe92c736ac0f83b Mon Sep 17 00:00:00 2001 From: ADoyle Date: Mon, 7 Nov 2022 00:42:29 +0800 Subject: feat: the parameter "map" of attach_mappings can be list of modes to create mapping on multiple modes (#2220) --- doc/telescope.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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"}, "", function(_prompt_bufnr) + print "You typed " + end) + -- needs to return true if you want to map default_mappings and -- false if not return true -- cgit v1.2.3