mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
fix doc
This commit is contained in:
parent
ed08fe1cb4
commit
8986ace1b2
@ -53,7 +53,7 @@ augroup numbertoggle
|
|||||||
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
|
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" highlight yanked region, see `:h lua-highlight`
|
" Define or override some highlight groups
|
||||||
augroup custom_highlight
|
augroup custom_highlight
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd ColorScheme * call s:custom_highlight()
|
autocmd ColorScheme * call s:custom_highlight()
|
||||||
@ -74,6 +74,7 @@ function! s:custom_highlight() abort
|
|||||||
highlight MatchParen cterm=underline gui=underline
|
highlight MatchParen cterm=underline gui=underline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" highlight yanked region, see `:h lua-highlight`
|
||||||
augroup highlight_yank
|
augroup highlight_yank
|
||||||
autocmd!
|
autocmd!
|
||||||
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300, on_visual=false}
|
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300, on_visual=false}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user