Mercurial > dotfiles
diff .chezmoitemplates/init.lua @ 460:ae7e377bced8
Add autocmd wrapper for lua
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 19 Sep 2021 14:57:14 +0200 |
parents | 43262db8ecf6 |
children | 676d7ef5fecb |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Sun Sep 19 14:47:17 2021 +0200 +++ b/.chezmoitemplates/init.lua Sun Sep 19 14:57:14 2021 +0200 @@ -721,6 +721,12 @@ vim.cmd [[command! LspRename lua LspRename()]] +local au = require 'au' + +au.TextYankPost = function() + vim.highlight.on_yank { timeout = 120 } +end + -- Try importing local config local ok, localconfig = pcall(require, 'localconfig') if ok then