1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Update: add mapping to clear highlighting

This commit is contained in:
jdhao 2020-03-17 14:21:32 +08:00 committed by GitHub
parent 99e4c9cfd6
commit bffd6bac70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,4 +167,9 @@ nnoremap <silent> <leader><Space> :call utils#StripTrailingWhitespaces()<CR>
" check the syntax group of current cursor position
nnoremap <silent> <leader>st :call utils#SynGroup()<CR>
" Clear highlighting
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
endif
"}