Nick Jensen wrote:
> The 2019-08-20 23:14, Bram Moolenaar wrote: > > We can add a popup_getinfo() function, so you can set all the > > properties. But this may have to be done every time the selection > > changes. It might work with the already existing CompleteChanged > > autocommand event. But it's not triggered when only the selected item > > changes. > > Could this function then also be used for setting text-property highlights? I > see that it is included in the todo list as a question: > > > - Use a popup window for the "info" item of completion instead of using a > > preview window. Ideas in issue #4544. > > How to add highlighting? > > Answer: I don't know :D But I'm looking forward to using it! Using `set > completeopt+=popup` is already much nicer than using the preview window. The highlighting is already working. Thinking about this again, it's probably best to add popup_getinfo() and when the info popup is removed, to hide it instead of deleting it. That way the properties you set on it will be kept. -- >From "know your smileys": 2B|^2B Message from Shakespeare /// Bram Moolenaar -- [email protected] -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201908211055.x7LAt9Wf003836%40masaka.moolenaar.net.
