From 8986ace1b2a11986ff3863714c150cc606dd5c6c Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 22 Oct 2021 21:23:38 +0800 Subject: [PATCH] fix doc --- core/autocommands.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/autocommands.vim b/core/autocommands.vim index 852f745..5709c54 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -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}