Skip to content

Instantly share code, notes, and snippets.

@rinx
Created April 26, 2014 02:09
Show Gist options
  • Save rinx/11309925 to your computer and use it in GitHub Desktop.
Save rinx/11309925 to your computer and use it in GitHub Desktop.
let g:unite_source_menu_menus.kaomoji = {
\ 'description' : 'kaomoji dictionary',
\}
let g:unite_source_menu_menus.kaomoji.candidates= [
\["", "( 'ω').。oO(…)"],
\["", "ヾ(⌒(_•ω•)_"],
\["kyun", "ヾ(⌒(\_*'ω'*)\_"],
\["kyun", "(*/ω\*)"],
\["namida", "\.˚‧º·(´ฅωฅ`)‧º·˚."],
\["fuee", "✧*。ヾ(。>﹏<。)ノ゙。*✧"],
\["ja-n", "٩(*'ω'*)و"],
\["chu", "°+♡:.(っ>ω<c).:♡+°"],
\["wa-i", "ヾ(✿╹◡╹)ノ\""],
\["wa-i", "ヾ(@⌒ー⌒@)ノ"],
\["kirakira", "✲゚。.(✿╹◡╹)ノ☆.。₀:*゚✲゚*:₀。"],
\["kyafu", "(⋈◍>◡<◍)。✧♡"],
\["yatta", "+。:.゚٩(๑>◡<๑)۶:.。+゚"],
\]
function! g:unite_source_menu_menus.kaomoji.map(key, value)
let [word, value] = a:value
if !empty(word)
return {
\ 'word' : '[' .word .'] ' .value,
\ 'kind' : 'word',
\ 'action__text' : value,
\}
else
return {
\ 'word' : '[no pronounce] ' .value,
\ 'kind' : 'word',
\ 'action__text' : value,
\}
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment