aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 179cb1e..4671207 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -85,8 +85,13 @@ require("packer").startup({
-- Clear highlight search automatically for you
use({"romainl/vim-cool", event = "VimEnter"})
- -- Show match number for search
- use {'kevinhwang91/nvim-hlslens', branch = 'main', event = "VimEnter"}
+ -- Show match number and index for searching
+ use {
+ 'kevinhwang91/nvim-hlslens',
+ branch = 'main',
+ keys = {{'n', '*'}, {'n', '#'}, {'n', 'n'}, {'n', 'N'}},
+ config = [[require('config.hlslens')]]
+ }
-- Stay after pressing * and search selected text
use({"haya14busa/vim-asterisk", event = 'VimEnter'})