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", - "execute('normal! ' . v:count1 . 'nzzzv')lua require('hlslens').start()", - { noremap = true, silent = true } + "n", + "n", + "execute('normal! ' . v:count1 . 'nzzzv')lua require('hlslens').start()", + { noremap = true, silent = true } ) vim.api.nvim_set_keymap( - "n", - "N", - "execute('normal! ' . v:count1 . 'Nzzzv')lua require('hlslens').start()", - { noremap = true, silent = true } + "n", + "N", + "execute('normal! ' . v:count1 . 'Nzzzv')lua require('hlslens').start()", + { noremap = true, silent = true } ) vim.api.nvim_set_keymap("n", "*", "(asterisk-z*)lua require('hlslens').start()", { 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 {