feat: toggle search highlighting with *

main
mandlm 2022-04-06 10:57:48 +02:00
parent ebcbf8e35b
commit f42e3c31b5
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 3 additions and 0 deletions

View File

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