Tweak statusline icons and spacing to my liking
This commit is contained in:
parent
c48dedc842
commit
8be546ba80
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue