From d78e7d3fe985ce19cbdcd536ee180b4e2a1f7848 Mon Sep 17 00:00:00 2001 From: Danthewaann Date: Mon, 24 Aug 2026 10:03:57 +0100 Subject: [PATCH] feat: support builtin vim.notify --- lua/python_import/notify.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/python_import/notify.lua b/lua/python_import/notify.lua index 255894c..d703566 100644 --- a/lua/python_import/notify.lua +++ b/lua/python_import/notify.lua @@ -13,6 +13,13 @@ else local status, nvim_notify = pcall(require, "notify") if status then M.notify = nvim_notify + else + M.notify = function(message, level, opts) + if type(message) == "table" then + message = table.concat(message, "\n") + end + vim.notify(message, level, opts) + end end end