diff options
Diffstat (limited to 'lua/keymaps.lua')
-rw-r--r-- | lua/keymaps.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 46e815c..c07a08a 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -1,8 +1,8 @@ -- [[ 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 |