16 lines
420 B
Lua
16 lines
420 B
Lua
-- Line numbers
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = true
|
|
|
|
-- Indent width4 (spaces); new lines inherit current indent
|
|
vim.opt.tabstop = 4
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.expandtab = true
|
|
vim.opt.softtabstop = -1 -- follow shiftwidth (Neovim)
|
|
|
|
vim.opt.autoindent = true
|
|
vim.opt.copyindent = true
|
|
vim.opt.smartindent = true -- pressing Enter after `{` indents the next line
|
|
|
|
vim.cmd('filetype plugin indent on')
|