Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Expand description of init.lua for beginners #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down