We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca4eb7 commit a1f3dceCopy full SHA for a1f3dce
init.lua
@@ -157,8 +157,8 @@ vim.opt.scrolloff = 10
157
-- [[ Basic Keymaps ]]
158
-- See `:help vim.keymap.set()`
159
160
--- Set highlight on search, but clear on pressing <Esc> in normal mode
161
-vim.opt.hlsearch = true
+-- Clear highlights on search when pressing <Esc> in normal mode
+-- See `:help hlsearch`
162
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
163
164
-- Diagnostic keymaps
0 commit comments