Closed tapyu closed 2 years ago
You can put the fitletype icon in front of filename and also can control the spacing with padding option. You're quite close actually .
- lualine_c = {{'filename', file_status = false, separator = ''}, {'filetype', icon_only = true}},
+ lualine_c = {{'filetype', icon_only = true, separator = '', padding={right=0, left=1}}, 'filename' },
I thought just setting the padding to zero wouldn't be enough. Now it looks fine. Thanks.
Requested feature
An option to
filename
component that allows displaying thefiletype
icon along with the name. With the current components, the best that I could achieve was the following:It is a reasonable result, but the file name and the type icon are kind of distant... Furthermore, I had to disable the
file status
option, otherwise it would be in the middle...Motivation
In my humble opinion,
filename
andfiletype
carry very close meanings and could be displayed together, as I tried to do with the available components.setup