-- Indentation vim.o.tabstop = 4 vim.o.softtabstop = 4 vim.o.shiftwidth = 4 vim.o.expandtab = false vim.o.autoindent = true vim.o.smartindent = true -- Line numbers vim.o.number = true vim.o.relativenumber = true -- Misc vim.o.conceallevel = 0 -- Conceals are broken for vimdoc for some reason vim.o.splitbelow = true vim.o.shortmess = vim.o.shortmess .. "c" vim.o.showmode = false vim.o.formatoptions = string.gsub(vim.o.formatoptions, "[cro]", "") vim.o.cmdheight = 2 vim.o.errorbells = false vim.o.scrolloff = 8 vim.o.encoding = "UTF-8" vim.o.fillchars = vim.o.fillchars .. "vert:│" vim.o.colorcolumn = "92" vim.o.signcolumn = "yes" -- Completion vim.o.complete = vim.o.complete .. ",kspell" -- vim.o.completeopt = "menuone,longest" vim.o.wildmenu = true vim.o.wildmode = "full" -- Searching vim.o.hlsearch = false vim.o.incsearch = true -- Backup vim.o.backup = false vim.o.writebackup = false -- Spell checking vim.o.spell = false -- Time vim.o.updatetime = 6000 vim.o.timeoutlen = 300 vim.o.ttimeoutlen = 10 -- Disable mouse support vim.o.mouse= "" -- Style vim.o.termguicolors = true vim.g.mapleader = "," -- Plugins vim.g["vim_markdown_folding_disabled"] = 1 vim.g.rustfmt_command = "rustup run nightly rustfmt --edition 2021" vim.g.rustfmt_autosave = 1 -- Custom globals vim.g.terminal_height = 12 vim.g.term_buf = 0 vim.g.term_win = -1