Hi, On Sat, Jul 11, 2020 at 9:05 AM lacygoill <[email protected]> wrote:
> @yegappan <https://github.com/yegappan> Do you think it would be possible > for 'quickfixtextfunc' to be assigned a lambda, in addition to a function > name? > > I have currently set the option to a function which aligns the fields in > the quickfix window; that's what I usually want. But it badly interferes > with one of my plugins which assumes another specific formatting in the > quickfix window. For the latter, I need to disable the feature; I can do it > like so: > > call setqflist([], ' ', {'items': items, 'quickfixtextfunc': > 's:disable_qftf'}) > fu s:disable_qftf(info) abort > return [] > endfu > > But it would be easier to read/write if I could use a lambda: > > call setqflist([], ' ', { 'items': items, 'quickfixtextfunc': {-> []} }) > ^-----^ > > ------------------------------ > > I do have the changes that support using a lambda function for this. I have to fix some issues in using it with the option setting. None of the Vim options currently support using a lambda function. > Btw, returning an empty list makes Vim display the lines unchanged; this > is very useful, but I don't think it's documented. > Yes. I will include the update to the help text in the next PR. Thanks, Yegappan -- -- 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/CAAW7x7kGjNxFEsox98duiKZhRYF3z%2BqXxk9OHgiNY9L_9PxJNQ%40mail.gmail.com.
