dotfiles/home/.config/nvim/lua/plugins/lualine.lua

28 lines
604 B
Lua
Raw Normal View History

-- Statusline
2023-11-25 14:37:36 +02:00
--- @type LazyPluginSpec
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,
},
},
},
},
2023-11-21 22:29:51 +02:00
config = true,
}