nvim: lua: autocmd: Fix highlight on yank autocmd

Still does not seem to work though 🤔.
This commit is contained in:
Sanchayan Maity 2021-05-02 13:16:29 +05:30
parent 38ccba3a6a
commit b6e2f23516

View file

@ -26,7 +26,7 @@ local autocmds = {
{ "InsertEnter", "*", "setlocal nohlsearch" };
};
lua_highlight = {
{ "TextYankPost", "*", "silent! lua require'vim.highlight'.on_yank(\"IncSearch\", 2000)" };
{ "TextYankPost", "*", "silent! lua vim.highlight.on_yank(timeout=2000)" };
};
}