feat: toggle search highlighting with *

This commit is contained in:
Michael Mandl 2022-04-06 10:57:48 +02:00
parent ebcbf8e35b
commit f42e3c31b5
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -48,3 +48,6 @@ vim.cmd('autocmd TermOpen term://* lua set_terminal_keymaps()')
-- buffer closing -- buffer closing
nnoremap("<leader>q", ":Bdelete<CR>") nnoremap("<leader>q", ":Bdelete<CR>")
-- toggle search highlighting
vim.cmd('nnoremap <expr> * v:hlsearch ? ":nohlsearch<cr>" : "*"')