@requires_segment_info
def capslock_indicator(pl, segment_info, text=u'CAPS'):
 if (not vim_func_exists(u'CapsLockStatusline')):
  return None
 return (text if vim.eval(u'CapsLockStatusline()') else None)

@ requires_segment_info def capslock_indicator ( pl , segment_info , text = u'CAPS' ) : if ( not vim_func_exists ( u'CapsLockStatusline' ) ) : return None return ( text if vim . eval ( u'CapsLockStatusline()' ) else None )
shows the indicator if tpope/vim-capslock plugin is enabled .