Commit cfe347f
committed
fix(tooling): guard package.searchpath for non-LuaJIT nvim builds
module_path called package.searchpath unconditionally; it is a Lua 5.2
extension LuaJIT ships (this config's runtime) but a PUC-Lua 5.1 nvim build
lacks it, where the bare call would hard-error during module resolution. Guard
it so resolution degrades to vim.loader.find (nvim core, always present).
Zero behavior change on LuaJIT; verified module_path still resolves normally
and no longer crashes when package.searchpath is absent.1 parent b73eac3 commit cfe347f
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
0 commit comments