diff options
author | Naru <naru@naruaway.com> | 2023-01-16 06:32:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 13:32:23 -0800 |
commit | 34b973b1d9e3b0c6f546e3aa661c29edd5a1ab87 (patch) | |
tree | d980eb4ea21a2fe58ff88bc50e6d81cd5bb1beb7 | |
parent | 69c71c4ab44d0bf9fe5f6b6066ad5c269d1507b8 (diff) | |
download | rneovim-34b973b1d9e3b0c6f546e3aa661c29edd5a1ab87.tar.gz rneovim-34b973b1d9e3b0c6f546e3aa661c29edd5a1ab87.tar.bz2 rneovim-34b973b1d9e3b0c6f546e3aa661c29edd5a1ab87.zip |
docs(lua): use luaref tag instead of www.lua.org #21813
-rw-r--r-- | runtime/doc/lua.txt | 5 | ||||
-rw-r--r-- | runtime/lua/vim/shared.lua | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 16d0bcb612..49b5c9da70 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -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, with subsequent calls returning the cached value without searching for, or -executing any script. For further details on `require()`, see the Lua -documentation at https://www.lua.org/manual/5.1/manual.html#pdf-require. +executing any script. For further details on `require()`, see |luaref-require()|. For example, if 'runtimepath' is `foo,bar` and |package.cpath| was `./?.so;./?.dll` at startup, `require('mod')` searches these paths in order @@ -1641,6 +1640,7 @@ gsplit({s}, {sep}, {plain}) *vim.gsplit()* See also: ~ |vim.split()| + |luaref-patterns| https://www.lua.org/pil/20.2.html http://lua-users.org/wiki/StringLibraryTutorial @@ -1913,6 +1913,7 @@ trim({s}) *vim.trim()* (string) String with whitespace removed from its beginning and end See also: ~ + |luaref-patterns| https://www.lua.org/pil/20.2.html validate({opt}) *vim.validate()* diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index b53c66ba63..7967d13943 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -60,6 +60,7 @@ end)() --- Splits a string at each instance of a separator. --- ---@see |vim.split()| +---@see |luaref-patterns| ---@see https://www.lua.org/pil/20.2.html ---@see http://lua-users.org/wiki/StringLibraryTutorial --- @@ -529,6 +530,7 @@ end --- Trim whitespace (Lua pattern "%s") from both sides of a string. --- +---@see |luaref-patterns| ---@see https://www.lua.org/pil/20.2.html ---@param s string String to trim ---@return string String with whitespace removed from its beginning and end |