nixos-old/nvim/settings.lua

29 lines
638 B
Lua
Raw Normal View History

local opt = vim.opt
local g = vim.g
-- allow mouse
opt.mouse = "a"
2022-10-24 19:14:09 +00:00
-- look
opt.termguicolors = true
2022-10-24 19:14:09 +00:00
opt.cursorline = false -- dont highlight current line
opt.number = true
2022-10-29 06:50:37 +00:00
g.rainbow_active = true
2022-10-30 09:35:13 +00:00
opt.background = "light"
g.gruvbox_contrast_light = "hard"
vim.cmd([[colorscheme gruvbox]])
2022-10-24 19:14:09 +00:00
2022-10-29 15:18:08 +00:00
-- files
opt.autoread = true --reload files when they are changed on disk
-- autoformat
g.rustfmt_autosave = true -- rustfmt on save
2022-10-24 19:14:09 +00:00
-- 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
]]