Shougo / ddc-source-lsp

lsp source for ddc.vim
Other
66 stars 20 forks source link

Support aliases (strictly). #19

Closed LumaKernel closed 2 years ago

LumaKernel commented 2 years ago

If you alias this source to two or more names, the global environment variable are conflicted.

Lua evaluation is exclusive, but async function in TypeScript may be interrupted by other operations at right after the await statement.

escapeVimAutoloadName is for escaping Unicode sequences into vim variable compatible names. eg:

Converting with escaping _ to make this injective (=reversible).


I personally make escapeVimAutoloadName / escapeVimAutoloadNameCached as public domain, so if other source creators see this, please feel free to copy it.


@Shougo It's maybe ready but not tested except escapeVimAutoloadName. Please test.

LumaKernel commented 2 years ago

And invocations of members of the source (eg: gatherCandidates) may be shuffled after calling ddc#refresh_candidates because ddc.vim uses await before calling them.

LumaKernel commented 2 years ago

(fixing lua side...)

LumaKernel commented 2 years ago

sorry, done (maybe)

Shougo commented 2 years ago

Thanks. Merged.