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 bc50208 commit 8b65cc9Copy full SHA for 8b65cc9
init.lua
@@ -165,8 +165,8 @@ vim.opt.foldenable = false -- Disable folding on startup
165
-- [[ Basic Keymaps ]]
166
-- See `:help vim.keymap.set()`
167
168
--- Set highlight on search, but clear on pressing <Esc> in normal mode
169
-vim.opt.hlsearch = true
+-- Clear highlights on search when pressing <Esc> in normal mode
+-- See `:help hlsearch`
170
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
171
172
-- Diagnostic keymaps
0 commit comments