1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

remove plugin vim-cool

nvim-hlslens can replace it if calm_down option is enabled.
This commit is contained in:
jdhao 2021-12-12 17:30:11 +08:00
parent 85427c6424
commit 06910bac87
2 changed files with 14 additions and 9 deletions

View File

@ -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 })

View File

@ -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 {