1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00
This commit is contained in:
jdhao 2021-10-22 21:23:38 +08:00
parent ed08fe1cb4
commit 8986ace1b2

View File

@ -53,7 +53,7 @@ augroup numbertoggle
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
augroup END
" highlight yanked region, see `:h lua-highlight`
" Define or override some highlight groups
augroup custom_highlight
autocmd!
autocmd ColorScheme * call s:custom_highlight()
@ -74,6 +74,7 @@ function! s:custom_highlight() abort
highlight MatchParen cterm=underline gui=underline
endfunction
" highlight yanked region, see `:h lua-highlight`
augroup highlight_yank
autocmd!
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300, on_visual=false}