mirror of https://github.com/folke/lazy.nvim.git
style: better comments for cache.find
This commit is contained in:
parent
2e3c16e526
commit
b4b11f48aa
|
@ -274,9 +274,9 @@ end
|
||||||
--- - rtp: (boolean) Search for modname in the runtime path (defaults to `true`)
|
--- - rtp: (boolean) Search for modname in the runtime path (defaults to `true`)
|
||||||
--- - paths: (string[]) Extra paths to search for modname (defaults to `{}`)
|
--- - paths: (string[]) Extra paths to search for modname (defaults to `{}`)
|
||||||
--- - patterns: (string[]) List of patterns to use when searching for modules.
|
--- - patterns: (string[]) List of patterns to use when searching for modules.
|
||||||
-- A pattern is a string added to the basename of the Lua module being searched.
|
--- A pattern is a string added to the basename of the Lua module being searched.
|
||||||
-- (defaults to `{"/init.lua", ".lua"}`)
|
--- (defaults to `{"/init.lua", ".lua"}`)
|
||||||
-- - all: (boolean) Return all matches instead of just the first one (defaults to `false`)
|
--- - all: (boolean) Return all matches instead of just the first one (defaults to `false`)
|
||||||
---@return ModuleInfo[] (list) A list of results with the following properties:
|
---@return ModuleInfo[] (list) A list of results with the following properties:
|
||||||
--- - modpath: (string) the path to the module
|
--- - modpath: (string) the path to the module
|
||||||
--- - modname: (string) the name of the module
|
--- - modname: (string) the name of the module
|
||||||
|
|
Loading…
Reference in New Issue