diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-11-24 23:24:52 -0500 |
---|---|---|
committer | chentau <tchen1998@gmail.com> | 2021-01-26 17:04:31 -0800 |
commit | 901dd79f6a5ee78a55d726abca868bebff117ca9 (patch) | |
tree | d990a5b443149f3cd030d299fea54cd2d82578f7 /src/nvim/ex_getln.c | |
parent | 4d1fc167a8a14067a848719a1d6c772edce6e11f (diff) | |
download | rneovim-901dd79f6a5ee78a55d726abca868bebff117ca9.tar.gz rneovim-901dd79f6a5ee78a55d726abca868bebff117ca9.tar.bz2 rneovim-901dd79f6a5ee78a55d726abca868bebff117ca9.zip |
feat: add completion to ':lua'
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 2aa66f6a8c..96cab0f110 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -69,6 +69,7 @@ #include "nvim/lib/kvec.h" #include "nvim/api/private/helpers.h" #include "nvim/highlight_defs.h" +#include "nvim/lua/executor.h" #include "nvim/viml/parser/parser.h" #include "nvim/viml/parser/expressions.h" @@ -5106,6 +5107,10 @@ ExpandFromContext ( if (xp->xp_context == EXPAND_PACKADD) { return ExpandPackAddDir(pat, num_file, file); } + if (xp->xp_context == EXPAND_LUA) { + ILOG("PAT %s", pat); + return nlua_expand_pat(pat, num_file, file); + } regmatch.regprog = vim_regcomp(pat, p_magic ? RE_MAGIC : 0); if (regmatch.regprog == NULL) |