From 2d0d057791854decb2c9b6a0b52d43f3900dff40 Mon Sep 17 00:00:00 2001 From: Kevin Traver Date: Tue, 30 Apr 2024 19:26:27 -0700 Subject: [PATCH] fix(picker): notify on empty quickfix and loclist (#3082) --- lua/telescope/builtin/__internal.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 0832250..ac3dd5c 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -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