diff options
author | James McCoy <jamessan@jamessan.com> | 2020-08-10 19:30:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 19:30:58 -0400 |
commit | 272389da3278c4c4b5353854edb32dce25b11587 (patch) | |
tree | c6f8df9a723cc7514d4c45f4b1bc7b833303925c /src/nvim/option.c | |
parent | 602e7505e2cd47ce0f45236a5175709d8ce2c489 (diff) | |
parent | e797d0658c70c734485f54e070cc7300dc47db57 (diff) | |
download | rneovim-272389da3278c4c4b5353854edb32dce25b11587.tar.gz rneovim-272389da3278c4c4b5353854edb32dce25b11587.tar.bz2 rneovim-272389da3278c4c4b5353854edb32dce25b11587.zip |
Merge pull request #12632 from tjdevries/tjdevries/packadd_lua
[RFC] lua: Force update of rtp more often
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 2862419177..168160834b 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -80,6 +80,7 @@ #ifdef WIN32 # include "nvim/os/pty_conpty_win.h" #endif +#include "nvim/lua/executor.h" #include "nvim/api/private/helpers.h" #include "nvim/os/input.h" #include "nvim/os/lang.h" @@ -3344,6 +3345,10 @@ ambw_end: if (!parse_winhl_opt(curwin)) { errmsg = e_invarg; } + } else if (varp == &p_rtp) { // 'runtimepath' + if (!nlua_update_package_path()) { + errmsg = (char_u *)N_("E970: Failed to initialize lua interpreter"); + } } else { // Options that are a list of flags. p = NULL; |