diff --git a/lua/frecency/db.lua b/lua/frecency/db.lua index 2e39d31a..588af7f5 100644 --- a/lua/frecency/db.lua +++ b/lua/frecency/db.lua @@ -143,7 +143,7 @@ function db.remove(entries, silent) local count = fs:count() fs:remove() if not vim.F.if_nil(silent, false) then - print(("Telescope-frecency: removed all entries. number of entries removed %d ."):format(count)) + vim.notify(("Telescope-frecency: removed all entries. number of entries removed %d ."):format(count)) end return end @@ -155,7 +155,7 @@ function db.remove(entries, silent) end if not vim.F.if_nil(silent, false) then - print(("Telescope-frecency: removed %d missing entries."):format(#entries)) + vim.notify(("Telescope-frecency: removed %d missing entries."):format(#entries)) end end diff --git a/lua/frecency/picker.lua b/lua/frecency/picker.lua index d8f95d62..320f6fff 100644 --- a/lua/frecency/picker.lua +++ b/lua/frecency/picker.lua @@ -281,7 +281,7 @@ m.setup = function(config) for _, path in ipairs(oldfiles) do fs.insert { path = path, count = 0 } -- TODO: remove when sql.nvim#97 is closed end - print(("Telescope-Frecency: Imported %d entries from oldfiles."):format(#oldfiles)) + vim.notify(("Telescope-Frecency: Imported %d entries from oldfiles."):format(#oldfiles)) end -- TODO: perhaps ignore buffer without file path here? diff --git a/lua/frecency/util.lua b/lua/frecency/util.lua index f8dbef67..e09e8b98 100644 --- a/lua/frecency/util.lua +++ b/lua/frecency/util.lua @@ -58,7 +58,7 @@ end util.abort_remove_unlinked_files = function() ---TODO: refactor all messages to a lua file. alarts.lua? - print "TelescopeFrecency: validation aborted." + vim.notify "TelescopeFrecency: validation aborted." end util.tbl_match = function(field, val, tbl)