This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Request for mutt aliases integration #97
Comments
Here's a way to do this, add the following code into your vimrc, you'll also need a snippet engine (ultisnips/snipmate/neosnippet). The alias name may not match the prefix of the alias pattern (e.g. " ncm's filtering is based on word, so it's better to convert results of
" muttaliases#CompleteMuttAliases into snippet expension
func! g:MuttOmniWrap(findstart, base)
let ret = muttaliases#CompleteMuttAliases(a:findstart, a:base)
if type(ret) == type([])
let i=0
while i<len(ret)
let ret[i]['snippet'] = ret[i]['word']
let ret[i]['word'] = ret[i]['abbr']
let i+=1
endwhile
endif
return ret
endfunc
au User CmSetup call cm#register_source({'name' : 'mutt',
\ 'priority': 9,
\ 'cm_refresh_length': -1,
\ 'cm_refresh_patterns': ['^\w+:\s+'],
\ 'cm_refresh': {'omnifunc': 'g:MuttOmniWrap'},
\ })
|
roxma
added a commit
that referenced
this issue
Jun 27, 2017
Awesome!! Thanks!! 💯 👍 I'll do a screen cast and put it in the screen shots issues once I figure out how to blur screen 😛 |
tricktux
pushed a commit
to tricktux/dotfiles
that referenced
this issue
Jun 27, 2017
This would be a great sample to try to implement #64 |
tricktux
pushed a commit
to tricktux/dotfiles
that referenced
this issue
Oct 23, 2017
tricktux
pushed a commit
to tricktux/dotfiles
that referenced
this issue
Oct 23, 2017
tricktux
pushed a commit
to tricktux/dotfiles
that referenced
this issue
Oct 23, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to humbly request for integration with vim-mutt-aliases-plugin.
Thanks for an excellent plugin.
The text was updated successfully, but these errors were encountered: