local options = { backup = false, -- creates a backup file -- clipboard = "unnamedplus", -- gives nvim access to clipboard cmdheight = 1, -- more space in nvim cmd line completeopt = { "menuone", "noselect" }, -- cmp related conceallevel = 0, -- don't hide `` in md fileencoding = "utf-8", hlsearch = false, ignorecase = true, mouse = "a", -- allow use of mouse (bad I know but sometimes useful) pumheight = 10, -- popup menu height showmode = true, smartcase = true, smartindent = true, splitbelow = true, splitright = true, swapfile = false, termguicolors = true, timeoutlen = 500, ttimeoutlen = 10, undofile = true, updatetime = 100, writebackup = false, expandtab = true, -- use spaces instead of tab shiftwidth = 4, -- insert 4 spaces for indentation tabstop = 4, -- insert 4 spaces for tab cursorline = false, number = true, laststatus = 3, showcmd = false, ruler = false, relativenumber = true, numberwidth = 2, signcolumn = "yes", wrap = false, scrolloff = 8, sidescrolloff = 8, guifont = "monospace:h17", title = true, spelllang = "en_us", } vim.opt.fillchars = vim.opt.fillchars + 'eob: ' vim.opt.shortmess:append "c" for k, v in pairs(options) do vim.opt[k] = v end vim.cmd "set whichwrap+=<,>,[,],h,l" vim.cmd "set colorcolumn=80" vim.cmd [[set iskeyword+=-]] -- Disable snipmate plugins to avoid duplicate snippets vim.g.UltiSnipsEnableSnipMate = 0 vim.g.UltiSnipsRemoveSelectModeMappings = 0 vim.g.UltiSnipsExpandTrigger = "" vim.g.UltiSnipsJumpForwardTrigger = "" vim.g.UltiSnipsJumpBackwardTrigger = ""