Section: Lua options

Set the leader key

lua
lua
vim.g.mapleader = " "
Explanation

Many Neovim setups use Space as the leader key.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Lua options
Enable line numbers
Turn on absolute and relative line numbers.
OpenIn sheetluasame section
Configure tabs and indentation
Set width and spacing rules.
OpenIn sheetluasame section
Map a save command
Bind a normal-mode key to save the file.
OpenIn sheetlua3 tag match
Map Telescope file search
Bind a key to file-finding with a Lua callback.
OpenIn sheetlua3 tag match
Map line movement in visual mode
Move selected lines up or down.
OpenIn sheetlua3 tag match
Create an autocmd
Run code when matching files are written.
OpenIn sheetlua2 tag match