Tweak statusline icons and spacing to my liking

This commit is contained in:
Danielle McLean 2023-11-18 17:38:31 +11:00
parent c48dedc842
commit 8be546ba80
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -15,13 +15,13 @@ def GitStatus(gitDir: string): string
return '' return ''
endif endif
const branch = g:FugitiveHead(gitDir)->st.PrependIfVisible("\ue0a0 ") # nf-pl-branch const branch = g:FugitiveHead(gitDir)->st.PrependIfVisible("\ue725 ") # nf-dev-git_branch
if !empty(branch) if !empty(branch)
return branch return branch
endif endif
return g:FugitiveHead(7, gitDir) return g:FugitiveHead(7, gitDir)
->st.PrependIfVisible("\Uf135e (") # nf-md-head ->st.PrependIfVisible("\ue729 (") # nf-dev-git_commit
->st.AppendIfVisible(")") ->st.AppendIfVisible(")")
enddef enddef
@ -54,7 +54,7 @@ enddef
def StatuslineRight(window: number, inactive: bool): string def StatuslineRight(window: number, inactive: bool): string
const percent = '%3p%%' const percent = '%3p%%'
const lineInfo = '%3l:%-2c' const lineInfo = '%3l:%-2c'
const fileType = '%{&ft}[%{&ff}]' const fileType = '%{&ft}[%{&ff}]'
if inactive if inactive
return StatuslineSection(1, 'Fill', [fileType, percent, lineInfo]) return StatuslineSection(1, 'Fill', [fileType, percent, lineInfo])
@ -64,7 +64,7 @@ def StatuslineRight(window: number, inactive: bool): string
const fileInfo = StatuslineSection(1, 'Fill', [fileEncoding, fileType]) const fileInfo = StatuslineSection(1, 'Fill', [fileEncoding, fileType])
const prettyPercent = cr.Sep(1, cr.ModeGroup('Fill'), cr.ModeGroup('B')) .. ' ' .. percent const prettyPercent = cr.Sep(1, cr.ModeGroup('Fill'), cr.ModeGroup('B')) .. ' ' .. percent
const prettyLineInfo = cr.Sep(1, cr.ModeGroup('B'), cr.ModeGroup('A')) .. lineInfo const prettyLineInfo = cr.Sep(1, cr.ModeGroup('B'), cr.ModeGroup('A')) .. ' ' .. lineInfo
return join([fileInfo, prettyPercent, prettyLineInfo]) return join([fileInfo, prettyPercent, prettyLineInfo])
enddef enddef