mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
fix(picker): notify on empty quickfix and loclist (#3082)
(cherry picked from commit 2d0d057791)
This commit is contained in:
committed by
Simon Hauser
parent
01928ddecc
commit
c4e3e8f6ca
@@ -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
|
||||
|
||||
@@ -497,6 +498,7 @@ internal.loclist = function(opts)
|
||||
end
|
||||
|
||||
if vim.tbl_isempty(locations) then
|
||||
utils.notify("builtin.loclist", { msg = "No loclist items", level = "INFO" })
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user