Member-only story
Neovim for Beginners — init.lua
Let’s start our journey to customize Neovim.
5 min readDec 27, 2021
Press enter or click to view image in full size![]()
Let’s configure Neovim using aninit.lua file.
This article is part of the Neovim for Beginners series.
We are going to
- Create an isolated configuration environment for Neovim by leveraging the
XDC_CONFIG_HOMEandXDG_DATA_HOMEvariables (:h xdg). - Using
packer.nvimas the plugin manager to install plugins. - Configure a color scheme, startup screen, and Git.
- Configure basic default values by using the
runtimepath(:h rtp). - Configure a
ftpluginfor Lua files (:h ftplugin).
Check out the Modern Neovim series to configure a modern personalized development environment (PDE) with Neovim using the lazy.nvim plugin manager.
Table of Content
· Isolated Neovim Configuration Environment
∘ install.sh
∘ Folder Structure
· init.lua
· plugins.lua
· Lua-based Configuration
∘ Startup Screen
∘ Git
· Default Settings
· File Type Plugin for Lua
· Uninstallation
· Start nvb in a New Terminal
· References
