Taro Muraoka wrote: > Hmm. It seems too tricky. How about this more formed idea. > > Vim can check type of returned value from completefunc, so vim should > accept not only array but also dictionary. For array value, vim use it > as same as currently. For dictionary value, vim behaves some parsing on > it. > > For example, 'refresh' means as you wrote, 'candidates' has array of > completion candidates. > > let l = list-with-complete-items > return { 'refresh': 'always', 'candidates': l } > > Besides it is extensible for future use.
Yes, that would work as well. Instead of "candidates" I would call it "words". Mainly because it's simpler. -- For large projects, Team Leaders use sophisticated project management software to keep track of who's doing what. The software collects the lies and guesses of the project team and organizes them in to instantly outdated charts that are too boring to look at closely. This is called "planning". (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" 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