Skip to content

Commit

Permalink
document lualine sections
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Dec 10, 2023
1 parent dae4489 commit 7e1c3a1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .config/nvim/lua/plugins/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ M.config = function()
table.insert(config.sections.lualine_x, component)
end

------------------
-- Left Section --
------------------
ins_left(borders.left)

ins_left {
Expand Down Expand Up @@ -221,20 +224,25 @@ M.config = function()
cond = conditions.is_yaml_ft,
}

--------------------
-- Center Section --
--------------------
-- Insert mid section. You can make any number of sections in neovim :)
-- for lualine it's any number greater then 2
ins_left {
function()
return '%='
end,
}

ins_left {
'filename',
cond = conditions.buffer_not_empty,
color = { fg = colors.aqua, gui = 'bold' },
}

-------------------
-- Right Section --
-------------------
ins_right {
-- Lsp server name .
function()
Expand Down Expand Up @@ -262,8 +270,6 @@ M.config = function()

ins_right { 'location' }

ins_right { 'searchcount' }

ins_right {
function()
return require('lazy').stats().startuptime
Expand Down

0 comments on commit 7e1c3a1

Please sign in to comment.