shun / ddc-source-vim-lsp

vim-lsp source for ddc.vim
MIT License
44 stars 13 forks source link

Get the invalid candidates for the file path if set the "forceCompletionPattern: '/'" #2

Closed shun closed 3 years ago

shun commented 3 years ago

After set "forceCompletionPattern: '/'", get the invalid candidates for the file path. Should be distinguished the file path or not.

image
Shougo commented 3 years ago

I think it is better.

'vimlsp': {'mark': 'vimlsp', 'forceCompletionPattern': '\.|:|->|"\w*/'

shun commented 3 years ago

@Shougo Thanks for your advice and it's much better !!

But I think it's better to distinguish the delimiter for each filetype. Therefore, plugin should change the delimiter dynamically in my opinion.

I'm keep investigating this issue what is the better solution.

Thank you.

Shougo commented 3 years ago

You can change it by filetype.

call ddc#custom#patch_filetype(['go'], 'sourcesOptions'
\ { 'vimlsp': {'mark': 'vimlsp', 'forceCompletionPattern': '\.|:|->|"\w*/' })
shun commented 3 years ago

@Shougo This is the solution which I want. Should be enough for me.

I close this. Thank you !

Shougo commented 3 years ago

deoplete has not the feature. So ddc.vim is better than deoplete!