diff options
| author | jdhao <jdhao@hotmail.com> | 2021-10-22 21:23:38 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-10-22 21:23:38 +0800 |
| commit | 8986ace1b2a11986ff3863714c150cc606dd5c6c (patch) | |
| tree | 1d796f1ea7551fedd414781df4fa903917504669 /core | |
| parent | ed08fe1cb4ea9e416c321cc1fb56f727ee2def78 (diff) | |
fix doc
Diffstat (limited to 'core')
| -rw-r--r-- | core/autocommands.vim | 3 |
1 files changed, 2 insertions, 1 deletions
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} |
