From 8be546ba8061d3e3ec8b715e0b2db95b792fbbf7 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 18 Nov 2023 17:38:31 +1100 Subject: [PATCH] Tweak statusline icons and spacing to my liking --- dot-config/vim/statusline.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dot-config/vim/statusline.vim b/dot-config/vim/statusline.vim index b77d76e..a732e27 100644 --- a/dot-config/vim/statusline.vim +++ b/dot-config/vim/statusline.vim @@ -15,13 +15,13 @@ def GitStatus(gitDir: string): string return '' 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) return branch endif return g:FugitiveHead(7, gitDir) - ->st.PrependIfVisible("\Uf135e (") # nf-md-head + ->st.PrependIfVisible("\ue729 (") # nf-dev-git_commit ->st.AppendIfVisible(")") enddef @@ -54,7 +54,7 @@ enddef def StatuslineRight(window: number, inactive: bool): string const percent = '%3p%%' - const lineInfo = '%3l:%-2c' + const lineInfo = '%3l:%-2c' const fileType = '%{&ft}[%{&ff}]' if inactive 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 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]) enddef