mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 14:03:51 +00:00
search results unlimited
This commit is contained in:
parent
d7236fcfbd
commit
a8610285c6
2 changed files with 13 additions and 1 deletions
|
|
@ -13,7 +13,18 @@ return {
|
|||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_y = {
|
||||
{
|
||||
function()
|
||||
local search = vim.fn.getreg('/')
|
||||
if search == '' then return '' end
|
||||
local ok, result = pcall(vim.fn.searchcount, { maxcount = 0, timeout = 100 })
|
||||
if not ok or not result or result.total == 0 then return '' end
|
||||
return string.format('[%d/%d]', result.current, result.total)
|
||||
end,
|
||||
},
|
||||
'progress'
|
||||
},
|
||||
lualine_z = {'location'}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue