From 6184ca819279c7e44f470a731fcca3d469f40a01 Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Mon, 18 Mar 2024 01:49:23 +0300 Subject: feat: new CMakeConfigureLast and CMakeConfigureDir commands. CMakeConfigure and CMakeConfigureDir now have vim.ui.* interface to edit --- lua/cmake-explorer/notification.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/cmake-explorer/notification.lua (limited to 'lua/cmake-explorer/notification.lua') diff --git a/lua/cmake-explorer/notification.lua b/lua/cmake-explorer/notification.lua new file mode 100644 index 0000000..fa8ff6e --- /dev/null +++ b/lua/cmake-explorer/notification.lua @@ -0,0 +1,13 @@ +local has_notify, notify = pcall(require, "notify") + +local Notification = {} + +function Notification.notify(msg, lvl, opts) + opts = opts or {} + if has_notify then + opts.hide_from_history = true + return notify(msg, lvl, opts) + end +end + +return Notification -- cgit v1.2.3