aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 50aaf9e03b..24f986ef4e 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -3611,6 +3611,20 @@ M.funcs = {
returns = 'string',
signature = 'getcharstr([{expr}])',
},
+ getcmdcomplpat = {
+ desc = [=[
+ Return completion pattern of the current command-line.
+ Only works when the command line is being edited, thus
+ requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
+ Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
+ |getcmdprompt()|, |getcmdcompltype()| and |setcmdline()|.
+ Returns an empty string when completion is not defined.
+ ]=],
+ name = 'getcmdcomplpat',
+ params = {},
+ returns = 'string',
+ signature = 'getcmdcomplpat()',
+ },
getcmdcompltype = {
desc = [=[
Return the type of the current command-line completion.
@@ -3618,7 +3632,7 @@ M.funcs = {
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
See |:command-completion| for the return string.
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
- |getcmdprompt()| and |setcmdline()|.
+ |getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
Returns an empty string when completion is not defined.
]=],
name = 'getcmdcompltype',