Files
nvim-config/lua/user/options.lua
SepehrYahyaee 8b25fb90bf First version
2026-04-13 13:41:22 +03:30

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')