VIM: make filename in statusline 30 chars (maximum)

Jonathan Hodgson 4 years ago
parent 2248c74519
commit 206353d2b7
  1. 6
      nvim/.config/nvim/plugin/statusline.vim

@ -66,16 +66,16 @@ function! DetectMode(mode)
" red = read only and not modified " red = read only and not modified
if &mod == 1 if &mod == 1
let statusline .= "%#GruvboxAqua#\ " . left let statusline .= "%#GruvboxAqua#\ " . left
let statusline .= "%#DiffChange#%.20f" let statusline .= "%#DiffChange#%.30f"
let statusline .= "%#GruvboxAqua#" . right . "\ " let statusline .= "%#GruvboxAqua#" . right . "\ "
else else
if &readonly == 1 if &readonly == 1
let statusline .= "%#GruvboxRed#\ " . left let statusline .= "%#GruvboxRed#\ " . left
let statusline .= "%#DiffDelete#%.20f" let statusline .= "%#DiffDelete#%.30f"
let statusline .= "%#GruvboxRed#" . right . "\ " let statusline .= "%#GruvboxRed#" . right . "\ "
else else
let statusline .= "%#GruvboxBg4#\ " . left let statusline .= "%#GruvboxBg4#\ " . left
let statusline .= "%#PmenuThumb#%.20f" let statusline .= "%#PmenuThumb#%.30f"
let statusline .= "%#GruvboxBg4#" . right . "\ " let statusline .= "%#GruvboxBg4#" . right . "\ "
endif endif
endif endif

Loading…
Cancel
Save