Skip to content

Commit f583f9c

Browse files
rivenirvanamynever
authored andcommitted
Remove redundant hlsearch option (nvim-lua#1058)
1 parent cbb4f78 commit f583f9c

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
@@ -162,8 +162,8 @@ vim.opt.scrolloff = 10
162162
-- [[ Basic Keymaps ]]
163163
-- See `:help vim.keymap.set()`
164164

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

169169
-- Diagnostic keymaps

0 commit comments

Comments
 (0)