Re: Can't get new o flag complete option working to add omnnicomplete results
Pablo Giménez <[email protected]> Fri, 22 May 2026 18:56:51 +0200
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <CAKt3ggKbMmvyXOowLkmMy06wfb1t4jpWuObubKDo=KNj_1jyCQ@mail.gmail.com> |
--000000000000f4ad2c06526aeac0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Romain. Ill try with the omnifunc for pythin that comes with vim, probably is just a problem with the jedi omnicompletion function Thanks El mar, 19 may 2026 a las 8:41, Romain Lafourcade (< [email protected]>) escribi=C3=B3: > The feature works as expected in 9.2.321 in JavaScript files (using the > stock javascriptcomplete#CompleteJS) and Python files (using the > stock python3complete#Complete). Thank you for pointing it out to me by t= he > way. > > Note that the completion list is prioritized by "kind", so items from > omnifunc may be way down the menu if "o" is at the end of "omnifunc". > > You should try it in a buffer for which the "omnifunc" is not set by a > plugin, or simply with "$ vim --clean", in order to rule out a Vim bug: > > $ vim --clean +set\ complete=3Do filename.py > > If "omnifunc" is set and you get language-aware completion, then it means > that the feature works and that the problem is somewhere else. You should > probably talk about this with the Jedi maintainers. > > If not, then you may have found a regression introduced between 321 and > 449, in which case you should head to Vim's issue tracker. > > On Saturday, May 16, 2026 at 6:42:21=E2=80=AFPM UTC+2 Pablo Gim=C3=A9nez = wrote: > >> Hello. >> Looking at the new features in Vim9.2, great release BTW, there is one >> that caught my attention, something I have been waiting for a long time. >> The ability to get the results from several complete commands into one >> simple complete query. >> Plugins like MuComplete where close, allowing to switch to different >> complete command, but the newly added o flag for the complete option loo= ks >> like the proper solution. >> Basically I want to press Ctrl-N and get results not only for keyword bu= t >> also for omnicomplete, semantic aware results, I have been testing it wi= th >> python where I use vim-jedi to >> get omnicompletion working using the jedi#completions function. >> Adding the o flag doesn't seem to have any effect in the complete >> options offered when I press Ctrl-N, if I press Ctrl-X-O I got the expec= ted >> results from omnicompletion, but those >> results doesn't appear when I press Ctrrl-N. >> These are the flags I use for complete: >> set complete=3D.,w,b,k,o >> >> Am I missing something? Are there some limitations with certain omnifunc= s >> or jedi#completions needs tweaks to get it working? >> I tried also using F and set complefunc to the same as omnifunc, but sam= e >> result. >> Using Vim 9.2.449 >> >> Thanks >> >> -- >> Un saludo >> Best Regards >> Pablo Gim=C3=A9nez >> > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/vim_use/4ca31e1e-8ddf-46e6-b656-8d72871= f0addn%40googlegroups.com > <https://groups.google.com/d/msgid/vim_use/4ca31e1e-8ddf-46e6-b656-8d7287= 1f0addn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter> > . > --=20 Un saludo Best Regards Pablo Gim=C3=A9nez --=20 --=20 You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php ---=20 You received this message because you are subscribed to the Google Groups "= vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAK= t3ggKbMmvyXOowLkmMy06wfb1t4jpWuObubKDo%3DKNj_1jyCQ%40mail.gmail.com. --000000000000f4ad2c06526aeac0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks Romain.<div>Ill try with the omnifunc for pythin th= at comes with vim, probably is just a problem with the jedi omnicompletion = function</div><div><br></div><div>Thanks</div></div><br><div class=3D"gmail= _quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">El mar,= 19 may 2026 a las 8:41, Romain Lafourcade (<<a href=3D"mailto:romainlaf= [email protected]">[email protected]</a>>) escribi=C3=B3:<br></= div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex">The feature works as = expected in 9.2.321 in JavaScript files (using the stock=C2=A0javascriptcom= plete#CompleteJS) and Python files (using the stock=C2=A0python3complete#Co= mplete). Thank you for pointing it out to me by the way.<div><br></div><div= >Note that the completion list is prioritized by "kind", so items= from omnifunc may be way down the menu if "o" is at the end of &= quot;omnifunc".</div><div><br></div><div>You should try it in a buffer= for which the "omnifunc" is not set by a plugin, or simply with = "$ vim --clean", in order to rule out a Vim bug:</div><div><br></= div><div>$ vim --clean +set\ complete=3Do filename.py</div><div><br></div><= div>If "omnifunc" is set and you get language-aware completion, t= hen it means that the feature works and that the problem is somewhere else.= You should probably talk about this with the Jedi maintainers.</div><div><= br></div><div>If not, then you may have found a regression introduced betwe= en 321 and 449, in which case you should head to Vim's issue tracker.</= div><div><br></div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gm= ail_attr">On Saturday, May 16, 2026 at 6:42:21=E2=80=AFPM UTC+2 Pablo Gim= =C3=A9nez wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin= :0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"= ><div dir=3D"ltr"><div>Hello.</div><div>Looking at the new features in Vim9= .2, great release BTW, there is one that caught my attention, something I h= ave been waiting for a long time.</div><div>The ability to get the results = from several complete commands into one simple complete query.</div><div>Pl= ugins like MuComplete where close, allowing to switch to different complete= command, but the newly added o flag for the complete option looks like the= proper solution.</div><div>Basically I want to press Ctrl-N and get result= s not only for keyword but also for omnicomplete, semantic aware results, I= have been testing it with python where I use vim-jedi to</div><div>get omn= icompletion working using the jedi#completions function.</div><div>Adding t= he o flag=C2=A0 doesn't seem to have any effect in the complete options= offered when I press Ctrl-N, if I press Ctrl-X-O I got the expected result= s from omnicompletion, but those</div><div>results doesn't appear when = I press Ctrrl-N.</div><div>These are the flags I use for complete:</div><di= v>set complete=3D.,w,b,k,o</div><div><br></div><div>Am I missing something?= Are there some limitations with certain omnifuncs or jedi#completions need= s tweaks to get it working?</div><div>I tried also using F and set complefu= nc to the same as omnifunc, but same result.</div><div>Using Vim 9.2.449</d= iv><div><br></div><div>Thanks</div><div><br></div><span class=3D"gmail_sign= ature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Un s= aludo<br>Best Regards<br>Pablo Gim=C3=A9nez</div></div> </blockquote></div> <p></p> -- <br> -- <br> You received this message from the "vim_use" maillist.<br> Do not top-post! Type your reply below the text you are replying to.<br> For more information, visit <a href=3D"http://www.vim.org/maillist.php" tar= get=3D"_blank">http://www.vim.org/maillist.php</a><br> <br> --- <br> You received this message because you are subscribed to the Google Groups &= quot;vim_use" group.<br> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>.<br> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= vim_use/4ca31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter" target=3D"_blank">https://groups.google.c= om/d/msgid/vim_use/4ca31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com= </a>.<br> </blockquote></div><div><br clear=3D"all"></div><div><br></div><span class= =3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s= ignature">Un saludo<br>Best Regards<br>Pablo Gim=C3=A9nez</div> <p></p> -- <br /> -- <br /> You received this message from the "vim_use" maillist.<br /> Do not top-post! Type your reply below the text you are replying to.<br /> For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt= p://www.vim.org/maillist.php</a><br /> <br /> --- <br /> You received this message because you are subscribed to the Google Groups &= quot;vim_use" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">vim_use+uns= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= vim_use/CAKt3ggKbMmvyXOowLkmMy06wfb1t4jpWuObubKDo%3DKNj_1jyCQ%40mail.gmail.= com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msg= id/vim_use/CAKt3ggKbMmvyXOowLkmMy06wfb1t4jpWuObubKDo%3DKNj_1jyCQ%40mail.gma= il.com</a>.<br /> --000000000000f4ad2c06526aeac0--