From 06910bac87cbb650f81cf9a715be057845a23136 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 12 Dec 2021 17:30:11 +0800 Subject: [PATCH] remove plugin vim-cool nvim-hlslens can replace it if calm_down option is enabled. --- lua/config/hlslens.lua | 21 +++++++++++++-------- lua/plugins.lua | 2 +- 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", - "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 {