mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
add moduledir
This commit is contained in:
parent
d3974346b6
commit
741d95a52a
1 changed files with 6 additions and 1 deletions
|
@ -260,7 +260,12 @@ end
|
||||||
function M.lsmod(modname, fn)
|
function M.lsmod(modname, fn)
|
||||||
local root = M.find_root(modname)
|
local root = M.find_root(modname)
|
||||||
if not root then
|
if not root then
|
||||||
return
|
local Config = require("lazy.core.config")
|
||||||
|
if Config.options.moduledir then
|
||||||
|
root = Config.options.moduledir .. modname
|
||||||
|
else
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if vim.uv.fs_stat(root .. ".lua") then
|
if vim.uv.fs_stat(root .. ".lua") then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue