Lightline.vim: triangles not showing

Created on 15 Nov 2016  ·  2Comments  ·  Source: itchyny/lightline.vim

I used the roboto mono for power line font in iterm2 , which have powerline support, but the triangles are not showing. it's strange because the agnoster theme show triangles correctly.

here is the config I used from the readme.

let g:lightline = {
      \ 'colorscheme': 'wombat',
      \ 'active': {
      \   'left': [ [ 'mode', 'paste' ],
      \             [ 'fugitive', 'filename' ] ]
      \ },
      \ 'component_function': {
      \   'fugitive': 'LightlineFugitive',
      \   'readonly': 'LightlineReadonly',
      \   'modified': 'LightlineModified',
      \   'filename': 'LightlineFilename'
      \ },
      \ 'separator': { 'left': '⮀', 'right': '⮂' },
      \ 'subseparator': { 'left': '⮁', 'right': '⮃' }
      \ }

function! LightlineModified()
    if &filetype == "help"
        return ""
    elseif &modified
        return "+"
    elseif &modifiable
        return ""
    else
        return ""
    endif
endfunction

function! LightlineReadonly()
    if &filetype == "help"
        return ""
    elseif &readonly
        return "⭤"
    else
        return ""
    endif
endfunction

function! LightlineFugitive()
    if exists("*fugitive#head")
        let branch = fugitive#head()
        return branch !=# '' ? '⭠ '.branch : ''
    endif
    return ''
endfunction

function! LightlineFilename()
    return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
                \ ('' != expand('%:t') ? expand('%:t') : '[No Name]') .
                \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
endfunction
configuration

Most helpful comment

Try copying the following config.

  \ 'separator': { 'left': '', 'right': '' },
  \ 'subseparator': { 'left': '', 'right': '' }

All 2 comments

Try copying the following config.

  \ 'separator': { 'left': '', 'right': '' },
  \ 'subseparator': { 'left': '', 'right': '' }

it worked thanks :)
I think it's an error with copy paste, because github does not display the triangle symbols

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ayutheos picture ayutheos  ·  4Comments

indiesquidge picture indiesquidge  ·  4Comments

codepushr picture codepushr  ·  3Comments

mrbig033 picture mrbig033  ·  4Comments

mckellyln picture mckellyln  ·  5Comments