feat: add completion to ':lua'

This commit is contained in:
TJ DeVries
2020-11-24 23:24:52 -05:00
committed by chentau
parent 4d1fc167a8
commit 901dd79f6a
7 changed files with 420 additions and 1 deletions

View File

@@ -3680,6 +3680,11 @@ const char * set_one_cmd_context(
xp->xp_pattern = (char_u *)arg;
break;
case CMD_lua:
xp->xp_context = EXPAND_LUA;
xp->xp_pattern = (char_u *)arg;
break;
default:
break;
}
@@ -5187,6 +5192,7 @@ static const char *command_complete[] =
#ifdef HAVE_WORKING_LIBINTL
[EXPAND_LOCALES] = "locale",
#endif
[EXPAND_LUA] = "lua",
[EXPAND_MAPCLEAR] = "mapclear",
[EXPAND_MAPPINGS] = "mapping",
[EXPAND_MENUS] = "menu",