Fix lualine separator visualizers, additionally add a custom section for
resizing mode. Finally, add buffers section.
This commit is contained in:
parent
697d0acf15
commit
e49fbf7eaf
1 changed files with 20 additions and 4 deletions
|
|
@ -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" }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue