From 124cc0c76c4a5c06608b405cfbcd5f1452e22dc1 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 5 Nov 2023 12:58:23 +0200 Subject: Clear messages/notifications with i --- lua/user/keys.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/user/keys.lua b/lua/user/keys.lua index a6be1e5..64e7cb0 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -59,8 +59,8 @@ map('n', 'm', ':marks') -- Messages map('n', 'M', ':messages') --- Clear messages or just refresh/redraw the screen -map('n', 'u', ":echo '' | redraw") +--- Clear messages or just refresh/redraw the screen +map('n', 'i', "lua require('notify').dismiss()") -- Unsets the 'last search pattern' register by hitting return --map("n", "", "!silent :noh") @@ -443,4 +443,7 @@ map('n', 'H', 'lua require("plugins.hardtime").ToggleHardtime() map('n', 'rr', 'lua require("user.mods").toggleCodeRunner()') -- Run executable file -map('n', 'rc', ":lua require('user.mods').RunCurrentFile():echom 'Running executable file...':sl!:echo ''") +map('n', 'rx', ":lua require('user.mods').RunCurrentFile():echom 'Running executable file...':sl!:echo ''") + +-- Close all floating windows +map('n', 'cw', 'CloseFloatingWindows') -- cgit v1.2.3