mirror of
https://github.com/nanotee/nvim-lua-guide
synced 2024-11-15 06:13:00 +00:00
Add section on :luafile
This commit is contained in:
parent
f224b353ce
commit
5a612e7476
12
README.md
12
README.md
@ -138,6 +138,18 @@ See also:
|
|||||||
|
|
||||||
### :luafile
|
### :luafile
|
||||||
|
|
||||||
|
This command sources a lua file.
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:luafile ~/foo/bar/baz/myluafile.lua
|
||||||
|
```
|
||||||
|
|
||||||
|
It is analogous to the `:source` command for .vim files or the built-in `dofile()` function in Lua.
|
||||||
|
|
||||||
|
See also:
|
||||||
|
|
||||||
|
- `:help :luafile`
|
||||||
|
|
||||||
### luaeval()
|
### luaeval()
|
||||||
|
|
||||||
### v:lua
|
### v:lua
|
||||||
|
Loading…
Reference in New Issue
Block a user