From 675dc8fa60d66f36eaf5f17562c0cedd9d12cd06 Mon Sep 17 00:00:00 2001 From: Uzair Aftab Date: Sat, 18 Oct 2025 16:13:46 +0200 Subject: [PATCH] feat: use `vim.notify` for logs instead of `vim.print` --- lua/amp/logger.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/amp/logger.lua b/lua/amp/logger.lua index 023bb31..a0c745f 100644 --- a/lua/amp/logger.lua +++ b/lua/amp/logger.lua @@ -18,7 +18,8 @@ end local function log(level, context, ...) if log_levels[level] >= current_level then local message = table.concat({ ... }, " ") - print(string.format("[%s] %s: %s", level:upper(), context, message)) + local notify_level = vim.log.levels[level:upper()] or vim.log.levels.INFO + vim.notify(string.format("%s: %s", context, message), notify_level) end end