mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-01 02:18:16 +00:00
feat(load): take first module when multiple matches exist on the rtp (#94)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ local function import_spec(spec, result)
|
||||
import_modname(modname, result)
|
||||
end
|
||||
local import_dir = vim.api.nvim_get_runtime_file(vim.fs.joinpath("lua", modname), true)
|
||||
if #import_dir == 1 then
|
||||
if #import_dir > 0 then
|
||||
local dir = import_dir[1]
|
||||
local handle = vim.uv.fs_scandir(dir)
|
||||
while handle do
|
||||
|
||||
Reference in New Issue
Block a user