Echo search count.
The vim-anzu is great plugin. This plugin is written in lua and provides several features of vim-anzu.
use 'rapan931/bistahieversor.nvim'
local bistahieversor = require('bistahieversor')
bistahieversor.setup({ maxcount = 1000, echo_wrapscan = true })
vim.keymap.set({'n', 'x', 'o'}, 'n', function() bistahieversor.n_and_echo() end)
vim.keymap.set({'n', 'x', 'o'}, 'N', function() bistahieversor.N_and_echo() end)
use lasterisk.nvim
vim.keymap.set('n', '*', function() require("lasterisk").search(); bistahieversor.echo() end)
vim.keymap.set('n', 'g*', function() require("lasterisk").search({ is_whole = false }); bistahieversor.echo() end)
vim.keymap.set('x', 'g*', function() require("lasterisk").search({ is_whole = false }); bistahieversor.echo() end)
require('bistahieversor').setup({
maxcount = 500, -- Max count of matched search, see ":h searchcount"
timeout = 0, -- Timeout milliseconds recomputing the search result, see ":h searchcount"
echo_wrapscan = 0, -- Echo wrapscan messages, see ":h shortmess" and 's' flag
search_hit_bottom_msg = {'search hit BOTTOM, continuing at TOP', 'ErrorMsg'}, -- hit bottom message and highlight group
search_hit_top_msg = {'search hit TOP, continuing at BOTTOM', 'ErrorMsg'}, -- hit top message and highlight group
})