nixos-old/nvim/settings.lua

19 lines
387 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-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
]]