roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
917 stars 49 forks source link

Use v:completed_item.user_data to pass extra data #211

Closed ikalnytskyi closed 6 years ago

ikalnytskyi commented 6 years ago

Recent Vim versions mark 'v:completed_item' as read-only, hence it's impossible to update this variable within a vimscript. Fortunately, an alternative solution has been introduced - from now on 'v:completed_item' contains 'user_data' key that may contain various user defined payload.

This patch get rids of some hacks, and make this plugin compatible with recent versions of Vim, NeoVim and neosnippet.

Fixes #196 Fixes #199

ikalnytskyi commented 6 years ago

Seems like it's not gonna happen because of ncm2.

roxma commented 6 years ago

Thanks for your work! @ikalnytskyi

It's really helpful information for me creating ncm2.