NeoVim: lualine: show selectioncount in visual mode

This commit is contained in:
Marko Korhonen 2024-06-26 11:34:00 +03:00
parent aca76119c9
commit 2f74592bff
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -3,5 +3,25 @@
return {
"nvim-lualine/lualine.nvim",
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
sections = {
lualine_z = {
{
"selectioncount",
cond = function()
local mode = vim.fn.mode()
return mode == "v" or mode == "V" or mode == "\22"
end,
},
{
"location",
cond = function()
local mode = vim.fn.mode()
return mode ~= "v" and mode ~= "V" and mode ~= "\22"
end,
},
},
},
},
config = true,
}