diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-07 23:21:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-07 23:21:31 +0200 |
commit | fd35811ca528de7612f9571bce20ef4c392fe5f7 (patch) | |
tree | ac5fce9ab80314ac72496c81d0c8d1cc9a81c130 /runtime/doc/if_lua.txt | |
parent | fe08df452af10db8a24dbeb1bd9ef09492a4bc66 (diff) |
Update runtime files, add Danish translations.
Diffstat (limited to 'runtime/doc/if_lua.txt')
-rw-r--r-- | runtime/doc/if_lua.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt index 5984d5b69f..a68f972f67 100644 --- a/runtime/doc/if_lua.txt +++ b/runtime/doc/if_lua.txt @@ -125,9 +125,9 @@ Vim evaluation and command execution, and others. Non-numeric keys are not used to initialize the list. See also |lua-eval| for conversion rules. Example: > - :lua t = {math.pi, false, say = 'hi'} - :echo luaeval('vim.list(t)') - :" [3.141593, v:false], 'say' is ignored + :lua t = {math.pi, false, say = 'hi'} + :echo luaeval('vim.list(t)') + :" [3.141593, v:false], 'say' is ignored < vim.dict([arg]) Returns an empty dictionary or, if "arg" is a Lua table, returns a dict d such that d[k] = @@ -136,12 +136,14 @@ Vim evaluation and command execution, and others. strings. Keys that are not strings are not used to initialize the dictionary. See also |lua-eval| for conversion rules. Example: > - :lua t = {math.pi, false, say = 'hi'} - :echo luaeval('vim.dict(t)') - :" {'say': 'hi'}, numeric keys ignored + :lua t = {math.pi, false, say = 'hi'} + :echo luaeval('vim.dict(t)') + :" {'1': 3.141593, '2': v:false, + :" 'say': 'hi'} < vim.funcref({name}) Returns a Funcref to function {name} (see - |Funcref|). It is equivalent to Vim's function(). + |Funcref|). It is equivalent to Vim's + function(). vim.buffer([arg]) If "arg" is a number, returns buffer with number "arg" in the buffer list or, if "arg" |