mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-12 14:52:38 +00:00
chore(nvim): statusline tweaks
This commit is contained in:
@@ -224,8 +224,8 @@ return {
|
|||||||
local mode, mode_hl = sl.section_mode { trunc_width = 120 }
|
local mode, mode_hl = sl.section_mode { trunc_width = 120 }
|
||||||
local git = sl.section_git { trunc_width = 75 }
|
local git = sl.section_git { trunc_width = 75 }
|
||||||
local diagnostics = sl.section_diagnostics { trunc_width = 75 }
|
local diagnostics = sl.section_diagnostics { trunc_width = 75 }
|
||||||
local filename = sl.section_filename { trunc_width = 999 }
|
local filename = sl.section_filename { trunc_width = 9999 }
|
||||||
-- local fileinfo = statusline.section_fileinfo({ trunc_width = 120 })
|
local fileinfo = sl.section_fileinfo { trunc_width = 120 }
|
||||||
local location = sl.section_location { trunc_width = 75 }
|
local location = sl.section_location { trunc_width = 75 }
|
||||||
return sl.combine_groups {
|
return sl.combine_groups {
|
||||||
{ hl = mode_hl, strings = { mode } },
|
{ hl = mode_hl, strings = { mode } },
|
||||||
@@ -233,7 +233,7 @@ return {
|
|||||||
'%<', -- Mark general truncate point
|
'%<', -- Mark general truncate point
|
||||||
{ hl = 'statuslineFilename', strings = { filename } },
|
{ hl = 'statuslineFilename', strings = { filename } },
|
||||||
'%=', -- End left alignment
|
'%=', -- End left alignment
|
||||||
-- { hl = 'statuslineFileinfo', strings = { fileinfo } },
|
{ hl = 'statuslineFileinfo', strings = { fileinfo } },
|
||||||
{ hl = mode_hl, strings = { location } },
|
{ hl = mode_hl, strings = { location } },
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user