Skip to content

Commit

Permalink
refactor(lualine): change position and added some comp
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkyilhampra committed Jan 30, 2024
1 parent 301ed3e commit 3460196
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions lua/aquila/plugins/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,22 @@ return {
section_separators = { left = '', right = '' },
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'filename' },
lualine_c = { 'branch' },
lualine_x = { "diagnostics", 'filetype' },
lualine_a = { 'filename' },
lualine_b = { 'branch' },
lualine_c = { 'diagnostics' },
lualine_x = {
'filetype',
"encoding",
{
'fileformat',
icons_enabled = true,
symbols = {
unix = 'LF',
dos = 'CRLF',
mac = 'CR',
},
}
},
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
Expand All @@ -32,14 +44,4 @@ return {
tabline = {},
extensions = {},
},
init = function()
vim.g.lualine_laststatus = vim.o.laststatus
if vim.fn.argc(-1) > 0 then
-- set an empty statusline till lualine loads
vim.o.statusline = " "
else
-- hide the statusline on the starter page
vim.o.laststatus = 0
end
end,
}

0 comments on commit 3460196

Please sign in to comment.