1
0
Fork 0

change powerline

This commit is contained in:
Luca Bilke 2022-08-11 14:46:56 +02:00
commit d151343b20

View file

@ -92,16 +92,16 @@ components.scrollbar = {
function() function()
local current_line = vim.fn.line "." local current_line = vim.fn.line "."
local total_lines = vim.fn.line "$" local total_lines = vim.fn.line "$"
local chars = { " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " } local chars = { "", "", "", "", "", "", "", "", "", "", "", "", "" }
local line_ratio = current_line / total_lines local line_ratio = current_line / total_lines
local index = math.ceil(line_ratio * #chars) local index = math.ceil(line_ratio * #chars)
return chars[index] return " " .. chars[index]
end, end,
color = { fg = colors.yellow }, color = { fg = colors.yellow },
cond = nil, cond = nil,
} }
lvim.builtin.lualine.options = { lvim.builtin.lualine.options = {
component_separators = { left = '', right = '' }, -- component_separators = { left = '│', right = '│' },
section_separators = { left = '', right = '' }, section_separators = { left = '', right = '' },
} }
lvim.builtin.lualine.sections = { lvim.builtin.lualine.sections = {