feat: toggle search highlighting with *
This commit is contained in:
parent
ebcbf8e35b
commit
f42e3c31b5
1 changed files with 3 additions and 0 deletions
|
@ -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>" : "*"')
|
||||||
|
|
Loading…
Reference in a new issue