Skip to content

Commit f45d604

Browse files
rivenirvanarexfordessilfie
authored andcommitted
Remove redundant hlsearch option (nvim-lua#1058)
1 parent 4893d06 commit f45d604

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
@@ -158,8 +158,8 @@ vim.opt.scrolloff = 10
158158
-- [[ Basic Keymaps ]]
159159
-- See `:help vim.keymap.set()`
160160

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

165165
-- Diagnostic keymaps

0 commit comments

Comments
 (0)