aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-06-03 07:07:51 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-06-11 01:01:03 +0600
commite1edc079dd0d0cb4a53e5998086568cf9d10a26a (patch)
treeeb60874111545e69847809a765c8dc6921e37aa2 /runtime/doc
parent92b6b3764cf75d01bcbf04fcf598140fc01e7902 (diff)
downloadrneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.tar.gz
rneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.tar.bz2
rneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.zip
refactor(source): Move lua file detection to do_source
So now :source can run lua files too :) * feat: Add support for :[ranged]source for lua files
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/repeat.txt6
-rw-r--r--runtime/doc/starting.txt2
2 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index c7806398d8..6755747dcf 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -172,9 +172,11 @@ Using Vim scripts *using-scripts*
For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
*:so* *:source* *load-vim-script*
-:so[urce] {file} Read Ex commands from {file}. These are commands that
- start with a ":".
+:so[urce] {file} Runs vim or lua {file}
Triggers the |SourcePre| autocommand.
+
+ Note: Only files ending with `.lua` is sourced as
+ lua file. Anything else is assumed to be vimscript.
*:source!*
:so[urce]! {file} Read Vim commands from {file}. These are commands
that are executed from Normal mode, like you type
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index 3a3caea126..2110b88330 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -477,7 +477,7 @@ accordingly. Vim proceeds in this order:
then all the "*.lua" files will be sourced. If two files with same
name but different extensions exists they will be treated in same
manner. For example when both "foo.vim" and "foo.lua" exists then
- first "foo.vim" will be sourced then "foo.lua" will be ran.
+ first "foo.vim" will be sourced then "foo.lua" will be sourced.
However, directories in 'runtimepath' ending in "after" are skipped
here and only loaded after packages, see below.
Loading plugins won't be done when: