diff options
| author | 2025-03-06 17:29:21 +0300 | |
|---|---|---|
| committer | 2025-03-06 18:20:54 +0300 | |
| commit | e61806bb0ab664171f70ce7572ef1b89869d4133 (patch) | |
| tree | 6771d938ebd0d9e60b7442e463de0ff2dc915743 /lua | |
| parent | feat: enable required integrations in `catppuccin` (diff) | |
| download | neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.tar.gz neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.tar.bz2 neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.tar.lz neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.tar.xz neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.tar.zst neovim-configuration-e61806bb0ab664171f70ce7572ef1b89869d4133.zip | |
feat: add keybinding to reset search highlight
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/options.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lua/config/options.lua b/lua/config/options.lua index 4bdfe21..0b301ee 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -50,5 +50,8 @@ map({ "n", "v" }, "gl", "$", { desc = "Last char in line" }) map({ "n", "v" }, "gm", "%", { desc = "Matching bracket" }) -- Make NeoVim open folds when searching -map("n", "n", "nzzzv", { desc = 'Next Search Result' }) -map("n", "N", "Nzzzv", { desc = 'Previous Search Result' }) +map("n", "n", "nzzzv", { desc = "Next Search Result" }) +map("n", "N", "Nzzzv", { desc = "Previous Search Result" }) + +-- Reset search highlight on ESC +map("n", "<Esc>", "<cmd>nohlsearch<CR>", { desc = "Reset search highlight" }) |
