rapan931 / bistahieversor.nvim

echo search count

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bistahieversor.nvim

Echo search count.

The vim-anzu is great plugin. This plugin is written in lua and provides several features of vim-anzu.

Install

packer.nvim
vim-jetpack

use 'rapan931/bistahieversor.nvim'

Usage

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)

Options

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

About

echo search count

License:MIT License


Languages

Language:Lua 100.0%