Fix lualine separator visualizers, additionally add a custom section for

resizing mode. Finally, add buffers section.
This commit is contained in:
Martin Larsson 2024-07-06 15:39:21 +02:00
parent 697d0acf15
commit e49fbf7eaf

View file

@ -1,3 +1,13 @@
local wm = require("window_management")
local function resize_mode()
if wm.is_in_resizing_mode() then
return "▲ Resizing ▼"
else
return ""
end
end
return { return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
dependencies = { dependencies = {
@ -14,14 +24,20 @@ return {
require("lualine").setup { require("lualine").setup {
options = { options = {
theme = catppuccin_theme, theme = catppuccin_theme,
section_separators = { "", "" }, section_separators = {
component_separators = { "", "" }, left = "",
right = "",
},
component_separators = {
left = "",
right = ""
},
icons_enabled = true, icons_enabled = true,
}, },
sections = { sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { "branch" }, lualine_b = { "branch", resize_mode },
lualine_c = {}, lualine_c = { "buffers" },
lualine_x = { "encoding", "fileformat", "filetype" }, lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { "progress" }, lualine_y = { "progress" },
lualine_z = { "location" } lualine_z = { "location" }