Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vista.vimで使われているアイコンを表示できない #45

Closed
t-shin-komae opened this issue Jun 4, 2019 · 11 comments
Closed
Assignees

Comments

@t-shin-komae
Copy link

Vista.vimというプラグインで使われる文字が一部、表示されない、またはNerdTree fontと異なるものが表示されます。

例:
uf794:
uf71b:

ubuntu18.04のgnome-terminal(フォントはCicaに変更済み)上でneovimを動かしています。

@miiton miiton self-assigned this Jun 4, 2019
@miiton
Copy link
Owner

miiton commented Jun 4, 2019

@t-shin-komae
ご報告ありがとうございます、CicaがNerd Fontsの更新についていっていない為ですね、
該当のグリフは Material Design Icons に含まれているようです。ちょっと試してみます。

@miiton
Copy link
Owner

miiton commented Jun 4, 2019

(メモ)

https://github.com/liuchengxu/vista.vim/blob/master/autoload/vista/renderer.vim#L5-L42

U+E22B などがCica v4のグリフとかぶるのでv5としてのリリースになる見込み

@miiton
Copy link
Owner

miiton commented Jun 4, 2019

(メモ)

No Name  + - VIM 2019-06-04 23-04-00

No Name  + - VIM 2019-06-04 23-07-41

@miiton
Copy link
Owner

miiton commented Jun 4, 2019

Nerd Fontsがこういう実装になっているのですが、0xfb00 〜 はアラビア文字に被ってしまっており、Vimできちんと表示されない(ambiwidthではない為)のでこの部分は取り込まないようにするかもしれません

@miiton
Copy link
Owner

miiton commented Jun 4, 2019

ryanoasis/nerd-fonts#346

こちらのIssueにある通り、U+F0000U+FFFFD に追加するの良さそうかな?

@miiton
Copy link
Owner

miiton commented Jun 5, 2019

korejanai

🤔

@miiton
Copy link
Owner

miiton commented Jun 5, 2019

ここまで持っていけました。

Cica) - VIM 2019-06-06 00-04-21

ambiwidth=double の環境限定です。single になるとアイコンが半分欠けてしまうので(´・ω・`)

miiton added a commit that referenced this issue Jun 26, 2019
@miiton
Copy link
Owner

miiton commented Jun 26, 2019

おまたせしました v5.0.1 でいい感じに表示できると思います

以下設定例です。

" Vista

let g:vista_icon_indent = ["󳄀󳄂 ", "󳄁󳄂 "]
let g:vista_default_executive = 'coc'
let g:vista#renderer#icons = {
            \ 'func':           "\Uff794",
            \ 'function':       "\Uff794",
            \ 'functions':      "\Uff794",
            \ 'var':            "\Uff71b",
            \ 'variable':       "\Uff71b",
            \ 'variables':      "\Uff71b",
            \ 'const':          "\Uff8ff",
            \ 'constant':       "\Uff8ff",
            \ 'method':         "\Uff6a6",
            \ 'package':        "\Ufe612",
            \ 'packages':       "\Ufe612",
            \ 'enum':           "\Uff435",
            \ 'enumerator':     "\Uff435",
            \ 'module':         "\Uff668",
            \ 'modules':        "\Uff668",
            \ 'type':           "\Ufe22b",
            \ 'typedef':        "\Ufe22b",
            \ 'types':          "\Ufe22b",
            \ 'field':          "\Uff93d",
            \ 'fields':         "\Uff93d",
            \ 'macro':          "\Uff8a3",
            \ 'macros':         "\Uff8a3",
            \ 'map':            "\Uffb44",
            \ 'class':          "\Uff9a9",
            \ 'augroup':        "\Uffb44",
            \ 'struct':         "\Uffb44",
            \ 'union':          "\Uffacd",
            \ 'member':         "\Uff02b",
            \ 'target':         "\Uff893",
            \ 'property':       "\Uffab6",
            \ 'interface':      "\Uffa52",
            \ 'namespace':      "\Uff475",
            \ 'subroutine':     "\Uff915",
            \ 'implementation': "\Uff87a",
            \ 'typeParameter':  "\Uff278",
            \ 'default':        "\Uff29c"
            \ }

@miiton
Copy link
Owner

miiton commented Jun 26, 2019

vista_icon_indent のところはv5.0.1をインストールして頂いた状態でコピペでいける...はず...!!

@miiton
Copy link
Owner

miiton commented Jun 27, 2019

Cica) - VIM 2019-06-27 09-03-34

こんな感じになります

@miiton
Copy link
Owner

miiton commented Jun 27, 2019

閉じますー

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants