-- lua/config/options.lua -- All vim options in one place local opt = vim.opt local o = vim.o -- Leader keys are set in init.lua before lazy loads -- UI o.number = true o.relativenumber = false o.cursorline = true o.signcolumn = 'yes' o.showmode = false o.scrolloff = 10 o.splitright = true o.splitbelow = true o.inccommand = 'split' -- Characters o.list = true opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } -- Mouse o.mouse = 'a' -- Clipboard (deferred to avoid startup lag) vim.schedule(function() o.clipboard = 'unnamedplus' end) -- Indentation o.expandtab = true o.smartindent = true o.tabstop = 2 o.shiftwidth = 2 o.breakindent = true -- Search o.ignorecase = true o.smartcase = true -- Files o.undofile = true o.confirm = true -- Performance o.updatetime = 250 o.timeoutlen = 300