From d943bf57d18e28dd106d36ac1d07a2e995e02267 Mon Sep 17 00:00:00 2001 From: AuroraTea <1352685369@qq.com> Date: Tue, 27 Sep 2022 16:07:51 +0800 Subject: [PATCH] add intro of init.lua for beginners Perhaps more accessible. Especially for those who have not used vim and init.vim before, and who want to use init.lua from the start when starting out with neovim. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 3b045e4..6b74ba5 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,15 @@ A few tutorials have already been written to help people write plugins in Lua. S Neovim supports loading an `init.lua` file for configuration instead of the usual `init.vim`. +`init.lua` does not need to be in the `.config/lua` directory, and the location is the same as the original `init.vim`. As an example for beginners who have not used `init.vim` before: + +```text +📂 ~/.config/nvim +├── 📂 lua +│ └── 🌑 plugins.lua +└── 🇻 init.lua +``` + Note: `init.lua` is of course _completely_ optional. Support for `init.vim` is not going away and is still a valid option for configuration. Do keep in mind that some features are not 100% exposed to Lua yet. See also: