[FeatureRequest] fallback to generic auto detect if filetype not configured
ZSaberLv0 opened this issue · 1 comments
ZSaberLv0 commented
Issue Prelude
- Category
- Question
- Bug
- Suggestion
Issue Details
most of langs and complete engines have similar v:completed_item
, I think it's possible to supply a generic fallback if filetype not configured, or if configured filetype has no param match
here's a sample for my case:
{'word': 'Show', 'menu': 'void Show(string text, int duration = 3000) [OS]', 'user_data': '{"cid":1588229487,"source":"OmniSharp","index":7}', 'info': '', 'kind': '', 'abbr': 'Show'}
parse pattern sample: (may be abbr/info/menu
in v:completed_item
)
ReturnType<P0, P1> FuncName<P0, P1>(
ref ParamType0<P0, P1> p0,
ParamType1 const &p1 = DefaultValue,
...)
ZSaberLv0 commented
https://github.com/ZSaberLv0/CompleteParameter_generic.vim
I have added a plugin to bypass this issue