local tab_width = 4 vim.g.mapleader = ' ' vim.opt.number = true vim.opt.relativenumber = true vim.opt.cursorline = true vim.opt.hidden = true vim.o.whichwrap = '<,>,[,]' vim.opt.wrap = false vim.opt.shiftwidth = tab_width vim.opt.tabstop = tab_width vim.opt.softtabstop = tab_width vim.opt.expandtab = false vim.opt.textwidth = 120 vim.opt.undofile = true vim.opt.undodir = os.getenv('HOME') .. '/.vim/undodir' vim.opt.list = true vim.opt.listchars = { leadmultispace = ' ', multispace = '.', tab = ' - ', } vim.opt.signcolumn = 'number' vim.opt.scrolloff = 10 vim.diagnostic.config { virtual_text = true }