Skip to main content

General Settings

The files autocmds.lua, keymaps.lua, lazy.lua and options.lua under lua/config will be automatically loaded at the appropriate time, so you don't need to require those files manually. LazyVim comes with a set of default config files that will be loaded before your own.

~/.config/nvim
β”œβ”€β”€ lua
β”‚Β Β  β”œβ”€β”€ config
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ autocmds.lua
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keymaps.lua
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lazy.lua
β”‚Β Β  β”‚Β Β  └── options.lua
β”‚Β Β  └── plugins
β”‚Β Β  β”œβ”€β”€ spec1.lua
β”‚Β Β  β”œβ”€β”€ **
β”‚Β Β  └── spec2.lua
└── init.toml
danger

Do not require autocmds, keymaps, lazy or options under lua/config/ or lazyvim.config manually. LazyVim will load those files automatically.

Options​

lua/config/options.lua
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here

Keymaps​

lua/config/keymaps.lua
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here

Auto Commands​

lua/config/autocmds.lua
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here