vim.o.pumblend = 50 vim.opt.relativenumber = true vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = false vim.opt.smartindent = false vim.o.list = true vim.opt.listchars = { tab = "··", trail = "·", nbsp = "_" } vim.opt.laststatus = 3 vim.opt.wrap = true vim.opt.linebreak = true vim.opt.swapfile = false vim.opt.backup = false vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir" vim.opt.undofile = true vim.opt.hlsearch = false vim.opt.incsearch = true vim.opt.termguicolors = true vim.opt.scrolloff = 8 vim.opt.signcolumn = "yes:1" vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 vim.opt.colorcolumn = "80" vim.opt.textwidth = 80 vim.opt.formatoptions = "rqnj" vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" vim.o.clipboard = "unnamedplus" vim.o.cursorline = true vim.o.cursorlineopt = "number" vim.opt.fillchars = { eob = " " } vim.o.ignorecase = true vim.o.smartcase = true vim.o.mouse = "a" vim.o.number = true vim.o.termguicolors = true vim.o.numberwidth = 3 vim.o.ruler = false vim.o.showmode = false vim.opt.shortmess:append "sI" vim.o.splitbelow = true vim.o.splitright = true vim.o.timeoutlen = 400 vim.opt.whichwrap:append "<>[]hl" vim.g.loaded_node_provider = 0 vim.g.loaded_python3_provider = 0 vim.g.loaded_perl_provider = 0 vim.g.loaded_ruby_provider = 0 local is_windows = vim.fn.has "win32" ~= 0 local sep = is_windows and "\\" or "/" local delim = is_windows and ";" or ":" vim.env.PATH = table.concat({ vim.fn.stdpath "data", "mason", "bin" }, sep) .. delim .. vim.env.PATH vim.api.nvim_set_hl( 0, "Cursor", { reverse = true }) vim.api.nvim_create_user_command('Redir', function(ctx) local lines = vim.split(vim.api.nvim_exec(ctx.args, true), '\n', { plain = true }) vim.cmd('new') vim.api.nvim_buf_set_lines(0, 0, -1, false, lines) vim.opt_local.modified = false end, { nargs = '+', complete = 'command' })