Skip to content

Commit ad34362

Browse files
restrayTimothée Belhomme
authored and
Timothée Belhomme
committed
Remove redundant hlsearch option (nvim-lua#1058)
1 parent a7d5e98 commit ad34362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ vim.opt.scrolloff = 10
157157
-- [[ Basic Keymaps ]]
158158
-- See `:help vim.keymap.set()`
159159

160-
-- Set highlight on search, but clear on pressing <Esc> in normal mode
161-
vim.opt.hlsearch = true
160+
-- Clear highlights on search when pressing <Esc> in normal mode
161+
-- See `:help hlsearch`
162162
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
163163

164164
-- Diagnostic keymaps

0 commit comments

Comments
 (0)