local opt = vim.opt -- line numbers opt.relativenumber = true opt.number = true -- tabs & indentation opt.tabstop = 2 opt.shiftwidth = 2 opt.expandtab = true opt.autoindent = true -- line wrap opt.wrap = false -- search settings opt.ignorecase = true opt.smartcase = true -- cursor line opt.cursorline = true -- appearance opt.termguicolors = true opt.background = "dark" opt.signcolumn = "yes" -- backspace opt.backspace = "indent,eol,start" -- split windows opt.splitright = true opt.splitbelow = true opt.iskeyword:append("-") -- [[ Setting options ]] -- See `:help vim.o` -- Set highlight on search vim.o.hlsearch = true -- Enable mouse mode vim.o.mouse = 'a' -- Sync clipboard between OS and Neovim. -- Remove this option if you want your OS clipboard to remain independent. -- See `:help 'clipboard'` vim.o.clipboard = 'unnamedplus' -- Enable break indent vim.o.breakindent = true -- Save undo history vim.o.undofile = true -- Decrease update time vim.o.updatetime = 250 vim.o.timeoutlen = 300 -- Set completeopt to have a better completion experience vim.o.completeopt = 'menuone,noselect'