26 lines
546 B
Lua
26 lines
546 B
Lua
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
|
|
|
|
-- 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
|
|
]]
|