diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-22 11:19:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 11:19:58 +0800 |
commit | 18fb669b9be1e7dac73dc3d97c2e3e7fd4013099 (patch) | |
tree | fd1ea024d899214cf3759a62bb0ee3ea87bbd815 /src/nvim/cmdexpand.c | |
parent | 108452aabad80af08351d137f528985ac339b295 (diff) | |
download | rneovim-18fb669b9be1e7dac73dc3d97c2e3e7fd4013099.tar.gz rneovim-18fb669b9be1e7dac73dc3d97c2e3e7fd4013099.tar.bz2 rneovim-18fb669b9be1e7dac73dc3d97c2e3e7fd4013099.zip |
fix(completion): include lua syntaxes in :ownsyntax completion (#21941)
This just removes DIP_LUA and always executes its branches.
Also add tests for cmdline completion for other lua runtime files.
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index c1059c40f0..be815151ef 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -2710,11 +2710,11 @@ static int ExpandFromContext(expand_T *xp, char *pat, char ***matches, int *numM } if (xp->xp_context == EXPAND_COLORS) { char *directories[] = { "colors", NULL }; - return ExpandRTDir(pat, DIP_START + DIP_OPT + DIP_LUA, numMatches, matches, directories); + return ExpandRTDir(pat, DIP_START + DIP_OPT, numMatches, matches, directories); } if (xp->xp_context == EXPAND_COMPILER) { char *directories[] = { "compiler", NULL }; - return ExpandRTDir(pat, DIP_LUA, numMatches, matches, directories); + return ExpandRTDir(pat, 0, numMatches, matches, directories); } if (xp->xp_context == EXPAND_OWNSYNTAX) { char *directories[] = { "syntax", NULL }; @@ -2722,7 +2722,7 @@ static int ExpandFromContext(expand_T *xp, char *pat, char ***matches, int *numM } if (xp->xp_context == EXPAND_FILETYPE) { char *directories[] = { "syntax", "indent", "ftplugin", NULL }; - return ExpandRTDir(pat, DIP_LUA, numMatches, matches, directories); + return ExpandRTDir(pat, 0, numMatches, matches, directories); } if (xp->xp_context == EXPAND_USER_LIST) { return ExpandUserList(xp, matches, numMatches); |