Skip to content

Commit 8b65cc9

Browse files
rivenirvanakiritowu
authored andcommitted
Remove redundant hlsearch option (nvim-lua#1058)
1 parent bc50208 commit 8b65cc9

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
@@ -165,8 +165,8 @@ vim.opt.foldenable = false -- Disable folding on startup
165165
-- [[ Basic Keymaps ]]
166166
-- See `:help vim.keymap.set()`
167167

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

172172
-- Diagnostic keymaps

0 commit comments

Comments
 (0)