neovim: show searchcount on lualine

This commit is contained in:
2024-01-22 19:09:52 +03:00
parent 3de2c8293d
commit 2763c6ce93

View File

@@ -22,6 +22,10 @@ local relative_filename = {
path = 1, path = 1,
} }
local searchcount = {
"searchcount",
}
local filetype = { local filetype = {
function() function()
local filetype = vim.bo.filetype local filetype = vim.bo.filetype
@@ -119,7 +123,7 @@ lualine.setup({
lualine_a = { mode }, lualine_a = { mode },
lualine_b = { branch }, lualine_b = { branch },
lualine_c = { diagnostics, relative_filename }, lualine_c = { diagnostics, relative_filename },
lualine_x = { diff, location, tabstop, fileformat }, lualine_x = { searchcount, diff, location, tabstop, fileformat },
lualine_y = { filetype }, lualine_y = { filetype },
lualine_z = {}, lualine_z = {},
}, },