feat: toggle search highlighting with *
This commit is contained in:
parent
ebcbf8e35b
commit
f42e3c31b5
@ -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>" : "*"')
|
||||
|
Reference in New Issue
Block a user