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': {-> []} }) > ^-----^ > > ------------------------------ > > Btw, returning an empty list makes Vim display the lines unchanged; this > is very useful, but I don't think it's documented. > > > I have created PR #6499 to support using a lambda function for 'quickfixtextfunc'. https://github.com/vim/vim/pull/6499 Can you try this out and let me know if you see any problems? 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/CAAW7x7mSTvOms65e-BNWYPKPe2G3f4PXBUVTe9B5g9YxOAQ69w%40mail.gmail.com.
