local opt = vim.opt -- Indent opt.tabstop = 2 opt.softtabstop = 2 opt.shiftwidth = 2 opt.expandtab = false opt.smartindent = true opt.wrap = false vim.api.nvim_create_autocmd("FileType", { pattern = "bend", callback = function() vim.opt_local.expandtab = true vim.opt_local.tabstop = 4 vim.opt_local.shiftwidth = 4 end, }) -- Appearance opt.number = true opt.relativenumber = false opt.cursorline = true opt.termguicolors = true opt.showmode = true opt.colorcolumn = "100" opt.signcolumn = "yes" opt.cmdheight = 1 opt.scrolloff = 10 opt.completeopt = "menuone,noinsert,noselect" opt.conceallevel = 3 -- Search opt.incsearch = true opt.hlsearch = false opt.ignorecase = true opt.smartcase = true -- Behaviuor opt.hidden = true opt.errorbells = false opt.swapfile = false opt.backup = false opt.backspace = "indent,eol,start" opt.splitright = true opt.splitbelow = true opt.autochdir = false opt.mouse = "a" opt.clipboard = "unnamedplus" opt.modifiable = true opt.encoding = "UTF-8"