junegunn / junegunn/vim-github-dashboard
Make extra space after emoji optional
- Vorherrschende Sprache
- Vim Script
- Sterne
- 483
- Forks
- 23
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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`?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by locating the s:emoji function and the g:github_dashboard configuration mentioned in the issue. The work is done when users can configure whether the plugin adds the extra space after emoji, while preserving any explicitly requested spacing.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- vim
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100