Ron89 / thesaurus_query.vim

Multi-language Thesaurus Query and Replacement plugin for Vim/NeoVim
http://www.vim.org/scripts/script.php?script_id=5341
Apache License 2.0
220 stars 23 forks source link

Provide completion function for emerging 'thesaurusfunc' #50

Open mcepl opened 2 years ago

mcepl commented 2 years ago

I have filed https://github.com/vim/vim/issues/8950 and awesome @yegappan suggested POC implementation in https://github.com/yegappan/vim/commit/949c4f25b5d97c7aa71952f917b7d2c3ac604778 Now, in order to test this, I would need a function following API of https://vimhelp.org/insert.txt.html#complete-functions generating a list of synonyms. Would it be possible for your plugin to add such function, which could be used as a value of 'thesaurusfunc' (same API as for 'completefunc' and 'omnifunc').

I hope it would be also help with your issue #7.

Cc: @reedes and @alem0lars from https://github.com/preservim/vim-lexical

Cross-posted with https://github.com/preservim/vim-lexical/issues/19