Skip to content

Commit a680609

Browse files
committed
chore(keymaps): remove redundant hlsearch option
This value is a Neovim default value. References: nvim-lua/kickstart.nvim#1058 Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
1 parent f1864f2 commit a680609

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

home/.config/nvim/lua/my/keymaps.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- See `:help vim.keymap.set()`
22

3-
-- Set highlight on search, but clear on pressing <Esc> in normal mode
4-
vim.opt.hlsearch = true
3+
-- Clear highlight on search when pressing <Esc> in normal mode
54
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
65

76
-- Diagnostic keymaps

0 commit comments

Comments
 (0)