neosnippet.vim icon indicating copy to clipboard operation
neosnippet.vim copied to clipboard

Feature request: Add a source to provide complete candicates

Open UncleBill opened this issue 10 years ago • 9 comments

Hi @Shougo It will be nice if neosnippet could parse provide some candidates for neocomplete: I have a css snippet:

snippet fs
    font-style:${1:normal|italic|oblique}

I hope neosnippet could parse ${1:normal|italic|oblique} and give me a complete list contains "normal","italic" and "oblique"

UncleBill avatar Aug 21 '14 01:08 UncleBill

  • :+1: The feature sounds very practical
  • The notation needs to get changed, because it prohibits you to use | in default text

ujihisa avatar Aug 21 '14 05:08 ujihisa

@ujihisa Thanks.

The notation needs to get changed, because it prohibits you to use | in default text

Agree!

UncleBill avatar Aug 21 '14 05:08 UncleBill

@UncleBill This selection is occurred when snippet is expanded?

Shougo avatar Aug 21 '14 06:08 Shougo

@UncleBill This selection is occurred when snippet is expanded?

I don't get it, my English is not good enough. My idea is writing a neocomplete source in neosnippet which collects the candidates from the sippet.

Like this: I type fst<tab>, and I get screenshot

UncleBill avatar Aug 21 '14 11:08 UncleBill

I try to change the snippet by calling ominfunc:

snippet fs
    font-style:`"\<c-x>\<c-o>"`;

But I just get:

    border-style: ^X^O;

UncleBill avatar Aug 21 '14 11:08 UncleBill

I get it. I think complete() is better than omnifunc.

Shougo avatar Aug 24 '14 11:08 Shougo

@Shougo is it will be easy to be implemented by remote plugin?

wsdjeg avatar Jan 23 '16 15:01 wsdjeg

No.

Shougo avatar Jan 24 '16 23:01 Shougo

Found vscode support it, and support this feature will be great!

roachsinai avatar Apr 02 '20 17:04 roachsinai