local opt = vim.opt local wo = vim.wo local cmd = vim.cmd local g = vim.g g.mapleader = "\\" g.maplocalleader = " " opt.cindent = true opt.colorcolumn = "80" opt.clipboard:append({ "unnamed", "unnamedplus" }) opt.expandtab = true opt.exrc = true opt.foldcolumn = "1" opt.foldlevel = 99 opt.foldlevelstart = 99 opt.foldenable = true opt.fillchars:append({ foldopen = "", foldclose = "", }) opt.ignorecase = true opt.incsearch = true opt.inccommand = "split" opt.mouse = "a" opt.completeopt = "menuone,noselect" wo.wrap = false opt.number = true opt.path = { "." } opt.signcolumn = "yes" opt.shiftwidth = 2 opt.smartcase = true opt.smarttab = true opt.spell = false opt.spelllang = "en_us" opt.scrolloff = 8 opt.relativenumber = true opt.tabstop = 2 opt.wildignore = { "node_modules/**", ".git/**", ".settings/**", ".mvn/**", "*.pyc", } opt.wildcharm = vim.fn.char2nr("") opt.list = true opt.listchars = "eol:↩,tab: " opt.title = true opt.showmode = false vim.o.updatetime = 250 vim.o.ch = 0 opt.syntax = "enable" vim.opt.swapfile = false vim.opt.backup = false if vim.fn.has("termguicolors") == 1 then opt.termguicolors = true end