fix(lualine): workaround lualine font rendering

This commit is contained in:
Ryan 2024-01-17 12:46:29 +08:00
parent ba2ff0b63e
commit 2c98923861

View File

@ -2,8 +2,8 @@ require 'lualine'.setup {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'auto', theme = 'auto',
component_separators = { left = "", right = "|" }, component_separators = "",
section_separators = "", section_separators = " ",
disabled_filetypes = {} disabled_filetypes = {}
}, },
sections = { sections = {
@ -15,7 +15,10 @@ require 'lualine'.setup {
{ 'filename', path = 1 }, { 'filename', path = 1 },
'diff', 'diff',
}, },
lualine_x = { 'encoding', 'fileformat', 'filetype' }, lualine_x = { 'encoding', 'fileformat', {
'filetype',
icon_only = true
} },
lualine_y = { 'progress' }, lualine_y = { 'progress' },
lualine_z = { 'location' } lualine_z = { 'location' }
}, },
@ -27,14 +30,5 @@ require 'lualine'.setup {
lualine_y = {}, lualine_y = {},
lualine_z = {} lualine_z = {}
}, },
-- Tabline is broken, disable for now.
-- tabline = {
-- lualine_a = {'buffers'},
-- lualine_b = {},
-- lualine_c = {},
-- lualine_x = {},
-- lualine_y = {},
-- lualine_z = {'tabs'}
-- },
extensions = {} extensions = {}
} }