From 882cdd49b153ef381b3b8ccd8a18e457954fbbde Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 5 Jun 2020 17:13:06 +0300 Subject: prep highlight yank for nvim 0.5.0 --- .config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 7fc630c..9841ff7 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -148,6 +148,13 @@ autocmd VimResized * :wincmd = autocmd FileType markdown,tex setlocal spell autocmd FileType rust let b:dispatch = 'cargo run' + +" TODO: this will get supported on nvim 0.5.0 +" augroup highlight_yank +" autocmd! +" autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) +" augroup END + "}}} " Functions {{{ -- cgit v1.2.3-70-g09d2