aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/repeat.txt
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-05-31 17:35:13 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-06-11 00:58:38 +0600
commit687eb0b39f3bcad9566198b4c60bbd2755032991 (patch)
treed118e6d1adc4e9fdff845912e1606ab40ae8b454 /runtime/doc/repeat.txt
parent1df8a34a7b91028413d6ac751b9dbf9fdcd6cda2 (diff)
downloadrneovim-687eb0b39f3bcad9566198b4c60bbd2755032991.tar.gz
rneovim-687eb0b39f3bcad9566198b4c60bbd2755032991.tar.bz2
rneovim-687eb0b39f3bcad9566198b4c60bbd2755032991.zip
feat(startup): Source runtime/plugin/**/*.lua at startup
For opt plugins these files are sourced on `:packadd` * `:runtime` Now can exexute lua files
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r--runtime/doc/repeat.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index dd05084652..c7806398d8 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -187,8 +187,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
*:ru* *:runtime*
:ru[ntime][!] [where] {file} ..
- Read Ex commands from {file} in each directory given
- by 'runtimepath' and/or 'packpath'. There is no error
+ Source vim/lua {file} in each directory given by
+ 'runtimepath' and/or 'packpath'. The vim files are
+ executed in same mannar as |:source| and lua files
+ similarly as |:luafile|. There is no error
for non-existing files.
Example: >
@@ -244,6 +246,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
Note that {name} is the directory name, not the name
of the .vim file. All the files matching the pattern
pack/*/opt/{name}/plugin/**/*.vim ~
+ and
+ pack/*/opt/{name}/plugin/**/*.lua ~
will be sourced. This allows for using subdirectories
below "plugin", just like with plugins in
'runtimepath'.