diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-07-13 17:20:22 -0400 |
---|---|---|
committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-08-10 16:48:35 -0400 |
commit | e797d0658c70c734485f54e070cc7300dc47db57 (patch) | |
tree | c6f8df9a723cc7514d4c45f4b1bc7b833303925c /src/nvim/lua/executor.c | |
parent | 602e7505e2cd47ce0f45236a5175709d8ce2c489 (diff) | |
download | rneovim-e797d0658c70c734485f54e070cc7300dc47db57.tar.gz rneovim-e797d0658c70c734485f54e070cc7300dc47db57.tar.bz2 rneovim-e797d0658c70c734485f54e070cc7300dc47db57.zip |
fix: runtimepath always updates lua package.path
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]; |