mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(lua): use luaref tag instead of www.lua.org #21813
This commit is contained in:
parent
69c71c4ab4
commit
34b973b1d9
@ -132,8 +132,7 @@ back to Lua's default search mechanism. The first script found is run and
|
|||||||
|
|
||||||
The return value is cached after the first call to `require()` for each module,
|
The return value is cached after the first call to `require()` for each module,
|
||||||
with subsequent calls returning the cached value without searching for, or
|
with subsequent calls returning the cached value without searching for, or
|
||||||
executing any script. For further details on `require()`, see the Lua
|
executing any script. For further details on `require()`, see |luaref-require()|.
|
||||||
documentation at https://www.lua.org/manual/5.1/manual.html#pdf-require.
|
|
||||||
|
|
||||||
For example, if 'runtimepath' is `foo,bar` and |package.cpath| was
|
For example, if 'runtimepath' is `foo,bar` and |package.cpath| was
|
||||||
`./?.so;./?.dll` at startup, `require('mod')` searches these paths in order
|
`./?.so;./?.dll` at startup, `require('mod')` searches these paths in order
|
||||||
@ -1641,6 +1640,7 @@ gsplit({s}, {sep}, {plain}) *vim.gsplit()*
|
|||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
|vim.split()|
|
|vim.split()|
|
||||||
|
|luaref-patterns|
|
||||||
https://www.lua.org/pil/20.2.html
|
https://www.lua.org/pil/20.2.html
|
||||||
http://lua-users.org/wiki/StringLibraryTutorial
|
http://lua-users.org/wiki/StringLibraryTutorial
|
||||||
|
|
||||||
@ -1913,6 +1913,7 @@ trim({s}) *vim.trim()*
|
|||||||
(string) String with whitespace removed from its beginning and end
|
(string) String with whitespace removed from its beginning and end
|
||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
|
|luaref-patterns|
|
||||||
https://www.lua.org/pil/20.2.html
|
https://www.lua.org/pil/20.2.html
|
||||||
|
|
||||||
validate({opt}) *vim.validate()*
|
validate({opt}) *vim.validate()*
|
||||||
|
@ -60,6 +60,7 @@ end)()
|
|||||||
--- Splits a string at each instance of a separator.
|
--- Splits a string at each instance of a separator.
|
||||||
---
|
---
|
||||||
---@see |vim.split()|
|
---@see |vim.split()|
|
||||||
|
---@see |luaref-patterns|
|
||||||
---@see https://www.lua.org/pil/20.2.html
|
---@see https://www.lua.org/pil/20.2.html
|
||||||
---@see http://lua-users.org/wiki/StringLibraryTutorial
|
---@see http://lua-users.org/wiki/StringLibraryTutorial
|
||||||
---
|
---
|
||||||
@ -529,6 +530,7 @@ end
|
|||||||
|
|
||||||
--- Trim whitespace (Lua pattern "%s") from both sides of a string.
|
--- Trim whitespace (Lua pattern "%s") from both sides of a string.
|
||||||
---
|
---
|
||||||
|
---@see |luaref-patterns|
|
||||||
---@see https://www.lua.org/pil/20.2.html
|
---@see https://www.lua.org/pil/20.2.html
|
||||||
---@param s string String to trim
|
---@param s string String to trim
|
||||||
---@return string String with whitespace removed from its beginning and end
|
---@return string String with whitespace removed from its beginning and end
|
||||||
|
Loading…
Reference in New Issue
Block a user