aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/config/hlslens.lua21
-rw-r--r--lua/plugins.lua2
2 files changed, 14 insertions, 9 deletions
diff --git a/lua/config/hlslens.lua b/lua/config/hlslens.lua
index 3acc91a..dba9dc7 100644
--- a/lua/config/hlslens.lua
+++ b/lua/config/hlslens.lua
@@ -1,15 +1,20 @@
+require('hlslens').setup({
+ calm_down = true,
+ nearest_only = true,
+})
+
vim.api.nvim_set_keymap(
- "n",
- "n",
- "<Cmd>execute('normal! ' . v:count1 . 'nzzzv')<CR><Cmd>lua require('hlslens').start()<CR>",
- { noremap = true, silent = true }
+ "n",
+ "n",
+ "<Cmd>execute('normal! ' . v:count1 . 'nzzzv')<CR><Cmd>lua require('hlslens').start()<CR>",
+ { noremap = true, silent = true }
)
vim.api.nvim_set_keymap(
- "n",
- "N",
- "<Cmd>execute('normal! ' . v:count1 . 'Nzzzv')<CR><Cmd>lua require('hlslens').start()<CR>",
- { noremap = true, silent = true }
+ "n",
+ "N",
+ "<Cmd>execute('normal! ' . v:count1 . 'Nzzzv')<CR><Cmd>lua require('hlslens').start()<CR>",
+ { noremap = true, silent = true }
)
vim.api.nvim_set_keymap("n", "*", "<Plug>(asterisk-z*)<Cmd>lua require('hlslens').start()<CR>", { silent = true })
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 4974970..4006096 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -78,7 +78,7 @@ require("packer").startup({
}
-- Clear highlight search automatically for you
- use({"romainl/vim-cool", event = "VimEnter"})
+ -- use({"romainl/vim-cool", event = "VimEnter"})
-- Show match number and index for searching
use {