Remove redundant hlsearch option

This commit is contained in:
rivenirvana 2024-07-27 01:13:32 +08:00
parent 56b9114bf2
commit 64595f9dd4
No known key found for this signature in database
GPG Key ID: EC2BB2E0EC3CE2FA
1 changed files with 2 additions and 2 deletions

View File

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