diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-07-14 06:46:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-14 06:46:16 +0800 |
| commit | dbb840da01c72d8a311e0c55d3248d78a64b63a4 (patch) | |
| tree | 36a381283d42f6e23d552c3ed8e06b03b9fed51b /runtime/doc | |
| parent | a3f4598226c4d01e4fbc41181a1ad21793862fe3 (diff) | |
| download | rneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.tar.gz rneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.tar.bz2 rneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.zip | |
fix(runtime): respect 'rtp' order for all runtime files (#24335)
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/quickfix.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/repeat.txt | 12 | ||||
| -rw-r--r-- | runtime/doc/syntax.txt | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 7a1649a74b..0bf04034ec 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1246,7 +1246,7 @@ not "b:current_compiler". What the command actually does is the following: - Delete the "current_compiler" and "b:current_compiler" variables. - Define the "CompilerSet" user command. With "!" it does ":set", without "!" it does ":setlocal". -- Execute ":runtime! compiler/{name}.(vim|lua)". The plugins are expected to +- Execute ":runtime! compiler/{name}.{vim,lua}". The plugins are expected to set options with "CompilerSet" and set the "current_compiler" variable to the name of the compiler. - Delete the "CompilerSet" user command. diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index a66d77910b..53f6904170 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -225,15 +225,15 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|. When {file} contains wildcards it is expanded to all matching files. Example: > - :runtime! plugin/**/*.vim -< This is what Vim uses to load the plugin files when + :runtime! plugin/**/*.{vim,lua} +< This is what Nvim uses to load the plugin files when starting up. This similar command: > - :runtime plugin/**/*.vim + :runtime plugin/**/*.{vim,lua} < would source the first file only. - For each {file} pattern, if a file has both a `.vim` - and `.lua` extensions, the `.vim` version will be sourced - first. + For each {file} pattern, if two `.vim` and `.lua` file + names match and differ only in extension, the `.vim` + file is sourced first. When 'verbose' is one or higher, there is a message when no file could be found. diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 09c935cb9b..631e666b6a 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -4895,8 +4895,8 @@ in their own color. output "default". :colo[rscheme] {name} Load color scheme {name}. This searches 'runtimepath' - for the file "colors/{name}.(vim|lua)". The first one that - is found is loaded. + for the file "colors/{name}.{vim,lua}". The first one + that is found is loaded. Note: "colors/{name}.vim" is tried first. Also searches all plugins in 'packpath', first below "start" and then under "opt". |