fix(picker): notify on empty quickfix and loclist (#3082)

This commit is contained in:
Kevin Traver
2024-04-30 19:26:27 -07:00
committed by GitHub
parent 35f94f0ef3
commit 2d0d057791

View File

@@ -408,6 +408,7 @@ internal.quickfix = function(opts)
local locations = vim.fn.getqflist({ [opts.id and "id" or "nr"] = qf_identifier, items = true }).items
if vim.tbl_isempty(locations) then
utils.notify("builtin.quickfix", { msg = "No quickfix items", level = "INFO" })
return
end
@@ -504,6 +505,7 @@ internal.loclist = function(opts)
end
if vim.tbl_isempty(locations) then
utils.notify("builtin.loclist", { msg = "No loclist items", level = "INFO" })
return
end