quangnguyen30192 / cmp-nvim-ultisnips

nvim-cmp source for ultisnips
Apache License 2.0
144 stars 19 forks source link

Snippetes with multiple options doesn't works #76

Closed TortoiseHive closed 2 years ago

TortoiseHive commented 2 years ago

Example:

snippet numericality: "numericality: { | }" i
numericality: { ${2|greater_than,greater_than_or_equal_to,less_than,less_than_or_equal_to,equal_to,other_than|}: ${3:100} }
endsnippet

Inserts:

numericality: { 1.greater_than|2.greater_than_or_equal_to|3.less_than|4.less_than_or_equal_to|5.equal_to|6.other_than: 100 }
smjonas commented 2 years ago

This is the expected behavior by UltiSnips. You need to press 1 / 2 etc. once the snippet was expanded to select the option you want.