local opt = vim.opt local g = vim.g -- allow mouse opt.mouse = "a" -- look opt.termguicolors = true opt.cursorline = false -- dont highlight current line opt.number = true g.rainbow_active = true opt.background = "light" g.gruvbox_contrast_light = "hard" vim.cmd([[colorscheme gruvbox]]) -- files opt.autoread = true --reload files when they are changed on disk -- autoformat g.rustfmt_autosave = true -- rustfmt on save -- highlight yanked text for 200ms using the "Visual" highlight group vim.cmd[[ augroup highlight_yank autocmd! au TextYankPost * silent! lua vim.highlight.on_yank({higroup="Visual", timeout=200}) augroup END ]]