fix(picker): notify on empty quickfix and loclist (#3082)
This commit is contained in:
@@ -408,6 +408,7 @@ internal.quickfix = function(opts)
|
|||||||
local locations = vim.fn.getqflist({ [opts.id and "id" or "nr"] = qf_identifier, items = true }).items
|
local locations = vim.fn.getqflist({ [opts.id and "id" or "nr"] = qf_identifier, items = true }).items
|
||||||
|
|
||||||
if vim.tbl_isempty(locations) then
|
if vim.tbl_isempty(locations) then
|
||||||
|
utils.notify("builtin.quickfix", { msg = "No quickfix items", level = "INFO" })
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -504,6 +505,7 @@ internal.loclist = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if vim.tbl_isempty(locations) then
|
if vim.tbl_isempty(locations) then
|
||||||
|
utils.notify("builtin.loclist", { msg = "No loclist items", level = "INFO" })
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user