docs(starting): mention init.lua in paths and remove repetition (#14883)

This commit is contained in:
smolck 2021-06-23 02:36:03 -05:00 committed by GitHub
parent 5a24284b8d
commit 0d7e33bc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,11 +416,11 @@ accordingly. Vim proceeds in this order:
the same time. Each line in a "init.vim" is executed as an Ex command the same time. Each line in a "init.vim" is executed as an Ex command
line. See also |vimrc-intro| and |base-directories|. line. See also |vimrc-intro| and |base-directories|.
The Nvim config file is "init.vim", located at: The config file is located at:
Unix ~/.config/nvim/init.vim Unix ~/.config/nvim/init.vim (or init.lua)
Windows ~/AppData/Local/nvim/init.vim Windows ~/AppData/Local/nvim/init.vim (or init.lua)
or if |$XDG_CONFIG_HOME| is defined: or if |$XDG_CONFIG_HOME| is defined:
$XDG_CONFIG_HOME/nvim/init.vim $XDG_CONFIG_HOME/nvim/init.vim (or init.lua)
If Nvim was started with "-u {file}" then {file} is used as the config If Nvim was started with "-u {file}" then {file} is used as the config
and all initializations until 5. are skipped. $MYVIMRC is not set. and all initializations until 5. are skipped. $MYVIMRC is not set.