Shougo / ddc.vim

Dark deno-powered completion framework for Vim/Neovim
MIT License
676 stars 32 forks source link

Can onInit() have sourceParams? #42

Closed delphinus closed 3 years ago

delphinus commented 3 years ago

Problems summary

onInit() does not have sourceParams in arguments.

Expected

onInit() can have sourceParams in arguments.

Detail

I am writing ddc-ctags and want to add a feature to specify a path to ctags executable. There are several kinds of “Ctags”'s, but the latest Universal Ctags is the one I want to use in this plugin.

So I need to test the executable the user set in sourceParams, but it is annoying that it runs tests every time gatherCandidates() is called.

If onInit() can have sourceParams, it needs to test only once.

Shougo commented 3 years ago

I have changed onInit() arguments. Please update ddc.vim to the latest.