highlight word to silent

This commit is contained in:
Oliver Hartmann 2022-10-05 12:02:21 +02:00
parent 739b2154eb
commit 570b9fe329

View File

@ -31,7 +31,7 @@ local function hlWord()
vim.opt.hlsearch = true vim.opt.hlsearch = true
end end
-- Highlight word under cursor -- Highlight word under cursor
vim.keymap.set('n', "'", hlWord, { noremap = true, silent = false }) vim.keymap.set('n', "'", hlWord, { noremap = true, silent = true })
vim.keymap.set('x', "'", 'y/\\V<C-R>"<CR>N', { noremap = true, silent = true }) vim.keymap.set('x', "'", 'y/\\V<C-R>"<CR>N', { noremap = true, silent = true })
-- Close Buffer -- Close Buffer