Re: Can't get new o flag complete option working to add omnnicomplete results
Romain Lafourcade <[email protected]> Mon, 18 May 2026 23:40:57 -0700 (PDT)
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1043454_524623521.1779172857339 Content-Type: multipart/alternative; boundary="----=_Part_1043455_54366920.1779172857339" ------=_Part_1043455_54366920.1779172857339 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The feature works as expected in 9.2.321 in JavaScript files (using the=20 stock javascriptcomplete#CompleteJS) and Python files (using the=20 stock python3complete#Complete). Thank you for pointing it out to me by the= =20 way. Note that the completion list is prioritized by "kind", so items from=20 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=20 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= =20 that the feature works and that the problem is somewhere else. You should= =20 probably talk about this with the Jedi maintainers. If not, then you may have found a regression introduced between 321 and=20 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 wr= ote: > Hello. > Looking at the new features in Vim9.2, great release BTW, there is one=20 > 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=20 > simple complete query. > Plugins like MuComplete where close, allowing to switch to different=20 > complete command, but the newly added o flag for the complete option look= s=20 > like the proper solution. > Basically I want to press Ctrl-N and get results not only for keyword but= =20 > also for omnicomplete, semantic aware results, I have been testing it wit= h=20 > 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 option= s=20 > offered when I press Ctrl-N, if I press Ctrl-X-O I got the expected resul= ts=20 > 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 omnifuncs= =20 > or jedi#completions needs tweaks to get it working? > I tried also using F and set complefunc to the same as omnifunc, but same= =20 > result. > Using Vim 9.2.449 > > Thanks > > --=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/4ca= 31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com. ------=_Part_1043455_54366920.1779172857339 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The feature works as expected in 9.2.321 in JavaScript files (using the sto= ck=C2=A0javascriptcomplete#CompleteJS) and Python files (using the stock=C2= =A0python3complete#Complete). Thank you for pointing it out to me by the wa= y.<div><br /></div><div>Note that the completion list is prioritized by "ki= nd", so items from omnifunc may be way down the menu if "o" is at the end o= f "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, then it means that the feature w= orks 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 yo= u may have found a regression introduced between 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"gmail_attr">On Saturday, May 16= , 2026 at 6:42:21=E2=80=AFPM UTC+2 Pablo Gim=C3=A9nez wrote:<br/></div><blo= ckquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1p= x 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 have been waiting for a long = time.</div><div>The ability to get the results from several complete comman= ds into one simple complete query.</div><div>Plugins like MuComplete where = close, allowing to switch to different complete command, but the newly adde= d o flag for the complete option looks like the proper solution.</div><div>= Basically I want to press Ctrl-N and get results not only for keyword but a= lso for omnicomplete, semantic aware results, I have been testing it with p= ython where I use vim-jedi to</div><div>get omnicompletion working using th= e jedi#completions function.</div><div>Adding the 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 results from omnicompletion, but t= hose</div><div>results doesn't appear when I press Ctrrl-N.</div><div>T= hese are the flags I use for complete:</div><div>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 needs tweaks to get it working?<= /div><div>I tried also using F and set complefunc to the same as omnifunc, = but same result.</div><div>Using Vim 9.2.449</div><div><br></div><div>Thank= s</div><div><br></div><span class=3D"gmail_signature_prefix">-- </span><br>= <div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signatur= e">Un saludo<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">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/4ca31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/4ca= 31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com</a>.<br /> ------=_Part_1043455_54366920.1779172857339-- ------=_Part_1043454_524623521.1779172857339--