.dotfiles/configs/nvim/lua/autocommands.lua

14 lines
246 B
Lua
Raw Normal View History

2021-11-10 13:09:54 +01:00
local cmd = vim.cmd;
cmd [[
augroup auto_format
au!
2021-11-17 14:09:07 +01:00
au BufWritePre * FormatSync
2021-11-10 13:09:54 +01:00
augroup END
augroup highlight_yank
au!
au TextYankPost * silent! lua vim.highlight.on_yank { timeout = 150 }
augroup END
]]