From a489f11c2befa6013f427daf2b36fde84a17a318 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 Oct 2021 02:27:06 +0300 Subject: nvim: higlighted yank --- .config/nvim/init.vim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b6a8acf..ba546d6 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -30,6 +30,9 @@ Plug 'janko/vim-test' Plug 'jpalardy/vim-slime' " snippets to expand Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' +" Highlight the yanked region +Plug 'machakann/vim-highlightedyank' + " auto pair plugin, people hate these Plug 'tmsvg/pear-tree' " language packs @@ -180,14 +183,6 @@ autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sen " runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear % - -" TODO: this will get supported on nvim 0.5.0 -" TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ -" augroup highlight_yank -" autocmd! -" autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) -" augroup END - "}}} " Functions {{{ -- cgit v1.2.3-70-g09d2