feat(nvim): clear highlighting after search

This commit is contained in:
Oliver Davies 2021-10-16 21:30:40 +01:00
parent 957d40c6a4
commit 685f68f70a

View file

@ -23,4 +23,7 @@ noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
" Clears hlsearch after doing a search, otherwise just does normal <CR> stuff
nnoremap <expr> <CR> {-> v:hlsearch ? ":nohl\<CR>" : "\<CR>"}()
nnoremap <silent> <C-f> :silent !tmux neww tmux-sessioniser<CR>