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:
parent
99e4c9cfd6
commit
bffd6bac70
@ -167,4 +167,9 @@ nnoremap <silent> <leader><Space> :call utils#StripTrailingWhitespaces()<CR>
|
|||||||
|
|
||||||
" check the syntax group of current cursor position
|
" check the syntax group of current cursor position
|
||||||
nnoremap <silent> <leader>st :call utils#SynGroup()<CR>
|
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
|
||||||
"}
|
"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user