junegunn / junegunn/vim-github-dashboard

Make extra space after emoji optional

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
483
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I am running the latest HEAD for NeoVim + the latest nightly of iTerm2, both of these things together allow for correct rendering of emoji with no character width problems or background color issues.

This means that the extra space which this plugin inserts after emoji is no longer required for my setup:
```diff
function! s:emoji(name, ...)
if b:github_emoji && has_key(s:emoji_code, tolower(a:name))
let e = s:emoji_code[tolower(a:name)]
- return join(map(copy(e), 'nr2char(v:val)'), '') . repeat(' ', 1 + (a:0 > 0 ? a:1 : 0))
+ return join(map(copy(e), 'nr2char(v:val)'), '') . repeat(' ', (a:0 > 0 ? a:1 : 0))
else
return ''
endif
endfunction
```

Would it be possible to make this an option that can be set via `g:github_dashboard`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.