aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-05-28 12:09:52 +0200
committerbfredl <bjorn.linse@gmail.com>2023-06-09 21:25:43 +0200
commit42bbc4fabcf948ac6b8798b8992bcba1fc1d3e59 (patch)
treedbb621867adf58beac42647e3e6267e55521909e /runtime
parent49019da86e283052c042509689f3a287056d1340 (diff)
downloadrneovim-42bbc4fabcf948ac6b8798b8992bcba1fc1d3e59.tar.gz
rneovim-42bbc4fabcf948ac6b8798b8992bcba1fc1d3e59.tar.bz2
rneovim-42bbc4fabcf948ac6b8798b8992bcba1fc1d3e59.zip
feat(api): support abbreviations in nvim_set_keymap
closes #19198
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt4
-rw-r--r--runtime/doc/news.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 83422c9501..8c44db1867 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1486,7 +1486,9 @@ nvim_set_keymap({mode}, {lhs}, {rhs}, {*opts}) *nvim_set_keymap()*
Parameters: ~
• {mode} Mode short-name (map command prefix: "n", "i", "v", "x", …) or
- "!" for |:map!|, or empty string for |:map|.
+ "!" for |:map!|, or empty string for |:map|. "ia", "ca" or
+ "!a" for abbreviation in insert mode, cmdline mode, or both,
+ respectively
• {lhs} Left-hand-side |{lhs}| of the mapping.
• {rhs} Right-hand-side |{rhs}| of the mapping.
• {opts} Optional parameters map: Accepts all |:map-arguments| as keys
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 87dfefcce8..a901c4f13c 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -82,6 +82,8 @@ The following new APIs or features were added.
• |vim.system()| for running system commands.
+• |nvim_set_keymap()| now supports abbreviations.
+
==============================================================================
CHANGED FEATURES *news-changed*