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/lua/executor.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/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 0d5622f1e7..86da517685 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -543,6 +543,14 @@ static lua_State *nlua_enter(void) return lstate; } +/// Force an update of lua's package paths if runtime path has changed. +bool nlua_update_package_path(void) +{ + lua_State *const lstate = nlua_enter(); + + return !!lstate; +} + static void nlua_print_event(void **argv) { char *str = argv[0]; |