diff options
author | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-02 13:48:13 +0600 |
---|---|---|
committer | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-11 01:01:02 +0600 |
commit | 68be8b99cfb1ab6105c48707986ce409ca38dd35 (patch) | |
tree | e0d3a12f6531b4766f431535949f627132ecb83d /src | |
parent | 1e6c02510afd79659519f2a69075b36784134322 (diff) | |
download | rneovim-68be8b99cfb1ab6105c48707986ce409ca38dd35.tar.gz rneovim-68be8b99cfb1ab6105c48707986ce409ca38dd35.tar.bz2 rneovim-68be8b99cfb1ab6105c48707986ce409ca38dd35.zip |
feat(runtime): Allow lua to be used in compiler
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 56a14887df..3f35c41e7a 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2421,6 +2421,7 @@ void ex_compiler(exarg_T *eap) if (*eap->arg == NUL) { // List all compiler scripts. do_cmdline_cmd("echo globpath(&rtp, 'compiler/*.vim')"); // NOLINT + do_cmdline_cmd("echo globpath(&rtp, 'compiler/*.lua')"); // NOLINT } else { size_t bufsize = STRLEN(eap->arg) + 14; buf = xmalloc(bufsize); @@ -2445,7 +2446,11 @@ void ex_compiler(exarg_T *eap) snprintf((char *)buf, bufsize, "compiler/%s.vim", eap->arg); if (source_in_path(p_rtp, buf, DIP_ALL) == FAIL) { - EMSG2(_("E666: compiler not supported: %s"), eap->arg); + // Try lua compiler + snprintf((char *)buf, bufsize, "compiler/%s.lua", eap->arg); + if (source_in_path(p_rtp, buf, DIP_ALL) == FAIL) { + EMSG2(_("E666: compiler not supported: %s"), eap->arg); + } } xfree(buf); |