dart.lua (344B)
1 local M = {} 2 3 function M.provided_references(opts) 4 opts.items = vim.tbl_filter(function(item) 5 return string.match(item.text, "Provider%(") 6 end, opts.items) 7 8 if #opts.items == 0 then 9 vim.notify('Not provided') 10 return 11 end 12 13 opts.title = 'Provided References' 14 vim.fn.setqflist({}, ' ', opts) 15 vim.cmd.copen() 16 end 17 18 return M