-- General vim.g.mapleader = " " vim.o.undofile = true -- Persistant undo -- UI vim.o.cmdheight = 0 -- Puts Lualine at very bottom vim.o.cursorline = true -- Current line highlighting vim.o.number = true -- Show line numbers vim.o.relativenumber = true -- Relative line numbers vim.o.signcolumn = "yes" -- Always show signcolumn (less flicker) vim.o.splitbelow = true -- Horizontal splits will be below vim.o.splitright = true -- Vertical splits will be to the right vim.o.termguicolors = true -- Enable 24-bit RGB color in TUI vim.o.winborder = "single" -- Use border in floating windows -- Editing vim.o.autoindent = true -- Use auto indent vim.o.expandtab = true -- Convert tabs to spaces vim.o.ignorecase = true -- Ignore case during search vim.o.incsearch = true -- Show search matches while typing vim.o.shiftwidth = 2 -- Use this number of spaces for indentation vim.o.smartindent = true -- Make indenting smart vim.o.tabstop = 2 -- Show tab as this number of spaces -- TODO: consider not using clipboard for all operations -- see :h clipboard vim.opt.clipboard = "unnamedplus"