vim/lualine: use stock progress instead of crescent moon
This commit is contained in:
parent
98a126fef0
commit
24133d1cff
1 changed files with 1 additions and 11 deletions
|
@ -135,16 +135,6 @@ local config = function()
|
||||||
'fileformat',
|
'fileformat',
|
||||||
cond = window_is_medium,
|
cond = window_is_medium,
|
||||||
},
|
},
|
||||||
|
|
||||||
progress = {
|
|
||||||
function()
|
|
||||||
local chars = { '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' }
|
|
||||||
local current, total = vim.fn.line '.', vim.fn.line '$'
|
|
||||||
return chars[math.ceil(#chars * current / total)]
|
|
||||||
end,
|
|
||||||
padding = { left = 0, right = 1 },
|
|
||||||
cond = window_is_wide,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local inactive_sections = {
|
local inactive_sections = {
|
||||||
|
@ -152,7 +142,7 @@ local config = function()
|
||||||
lualine_b = { parts.visual_multi, parts.branch },
|
lualine_b = { parts.visual_multi, parts.branch },
|
||||||
lualine_c = { parts.filename, parts.status },
|
lualine_c = { parts.filename, parts.status },
|
||||||
lualine_x = { 'diagnostics', parts.filetype },
|
lualine_x = { 'diagnostics', parts.filetype },
|
||||||
lualine_y = { parts.fileformat, parts.progress },
|
lualine_y = { parts.fileformat, 'progress' },
|
||||||
lualine_z = { 'location' },
|
lualine_z = { 'location' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue