lualine: don't show encoding and format for good defaults (utf-8/unix)
and show relative directory in the filename
This commit is contained in:
parent
9f96f26128
commit
7d10a43ad0
1 changed files with 26 additions and 2 deletions
28
init.lua
28
init.lua
|
|
@ -59,12 +59,36 @@ lualine.setup({
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { 'mode' },
|
lualine_a = { 'mode' },
|
||||||
lualine_b = { 'diagnostics' },
|
lualine_b = { 'diagnostics' },
|
||||||
lualine_c = { 'filename' },
|
lualine_c = {
|
||||||
lualine_x = { 'fileformat', 'encoding' },
|
{
|
||||||
|
'filename',
|
||||||
|
path = 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lualine_x = {
|
||||||
|
{
|
||||||
|
'fileformat',
|
||||||
|
cond = function()
|
||||||
|
return vim.bo.fileformat ~= 'unix'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'encoding',
|
||||||
|
cond = function()
|
||||||
|
return vim.bo.fileencoding ~= 'utf-8'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
{
|
{
|
||||||
'filetype',
|
'filetype',
|
||||||
icons_enabled = false,
|
icons_enabled = false,
|
||||||
|
symbols = {
|
||||||
|
modified = '',
|
||||||
|
readonly = '',
|
||||||
|
unnamed = '',
|
||||||
|
new = '',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_z = { 'searchcount', 'progress', 'location' },
|
lualine_z = { 'searchcount', 'progress', 'location' },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue