vim.g.mapleader = " " vim.opt.hlsearch = true vim.opt.incsearch = true vim.opt.termguicolors = true vim.opt.scrolloff = 2 vim.opt.colorcolumn = '' -- default to off, see keymapping shortcut to toggle vim.opt.signcolumn = "yes" -- "auto", "yes", "no", "number" vim.opt.laststatus = 2 vim.opt.splitright = true vim.opt.splitbelow = true vim.opt.number = true vim.opt.relativenumber = true vim.opt.cursorline = true vim.opt.cursorlineopt = "both" vim.opt.smartindent = true vim.opt.wrap = true vim.opt.textwidth = 0 vim.opt.wrapmargin = 0 vim.opt.fillchars = { eob = ' ' } vim.opt.conceallevel = 0 vim.opt.spell = false vim.opt.spelllang = 'en_us' vim.opt.errorbells = false vim.opt.visualbell = false vim.opt.updatetime = 1000 vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.backup = false vim.opt.swapfile = false vim.opt.undodir = os.getenv("XDG_DATA_HOME") .. "/nvim/undodir" vim.opt.undofile = true -- netrw settings vim.g.netrw_browse_split = 0 vim.g.netrw_preview = 1 vim.g.netrw_banner = 0 vim.g.netrw_winsize = 50