Lightline.vim: glyph not displayed for coc.nvim integration

Created on 9 Jan 2019  Â·  4Comments  Â·  Source: itchyny/lightline.vim

I have followed coc.nvim's doc for putting coc-status in lightline status bar:

  let g:lightline = {
    \ 'colorscheme': 'wombat',
    \ 'active': {
    \   'left': [ [ 'mode', 'paste' ],
    \             [ 'cocstatus', 'readonly', 'filename', 'modified' ] ]
    \ },
    \ 'component_function': {
    \   'cocstatus': 'coc#status'
    \ },
\ }

The problem is that the error glyph does not show up correctly (it's shown as a box of string) even though I have set the error glyph as a capital x (X) in coc.nvim:

"coc.preferences.diagnostic.errorSign": "X",
"coc.preferences.diagnostic.warningSign": "âš ",
"coc.preferences.diagnostic.infoSign": ">>",
"coc.preferences.diagnostic.hintSign": ">>",

The strange thing is that the warning glyph shows up in the status bar correctly. Also, all glyphs show up correctly in the sign column in vim but they just got messed up somehow in the status bar.

configuration

All 4 comments

I have tried the suggestion in #281 but it didn't help

This seems to be an issue of coc.nvim so please report to the repository of coc.nvim. If you still think this is an issue of lightline, please paste the minimal vimrc, screenshots and the precise steps to reproduce the problem (so that anyone who does not know what coc.nvim is for can understand what the problem is and what the reporter expect).

Never mind. I found the problem

i have the exactly same issue, how do you fix this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrbig033 picture mrbig033  Â·  4Comments

ahmedelgabri picture ahmedelgabri  Â·  3Comments

kiryph picture kiryph  Â·  3Comments

xeho91 picture xeho91  Â·  4Comments

mckellyln picture mckellyln  Â·  5Comments