Remove redundant hlsearch option (#1058)

This commit is contained in:
Arvin Verain 2024-07-29 00:39:54 +08:00 committed by Renken
parent 74d389060b
commit 367b0f5020
Signed by: renken
GPG key ID: 1F2BB159B645E575

View file

@ -172,8 +172,8 @@ vim.opt.scrolloff = 10
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
-- Set highlight on search, but clear on pressing <Esc> in normal mode -- Clear highlights on search when pressing <Esc> in normal mode
vim.opt.hlsearch = true -- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps -- Diagnostic keymaps