NeoVim: lualine: show selectioncount in visual mode
This commit is contained in:
parent
aca76119c9
commit
2f74592bff
1 changed files with 20 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue