diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-11-05 12:58:23 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-11-05 12:58:23 +0200 |
| commit | 124cc0c76c4a5c06608b405cfbcd5f1452e22dc1 (patch) | |
| tree | d6a89234de63fb98f04f2e81cb21cf475316e9f5 /lua | |
| parent | 61a3cc6db14c619e291601a773ad06988b293c8e (diff) | |
| download | dotfiles-124cc0c76c4a5c06608b405cfbcd5f1452e22dc1.tar.gz dotfiles-124cc0c76c4a5c06608b405cfbcd5f1452e22dc1.zip | |
Clear messages/notifications with <leader>i
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/user/keys.lua | 9 |
1 files 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', '<Leader>m', ':marks<CR>') -- Messages map('n', '<Leader>M', ':messages<CR>') --- Clear messages or just refresh/redraw the screen -map('n', '<leader>u', ":echo '' | redraw<CR>") +--- Clear messages or just refresh/redraw the screen +map('n', '<leader>i', "<cmd>lua require('notify').dismiss()<CR>") -- Unsets the 'last search pattern' register by hitting return --map("n", "<CR>", "!silent :noh<CR><CR>") @@ -443,4 +443,7 @@ map('n', '<leader>H', '<CMD>lua require("plugins.hardtime").ToggleHardtime()<CR> map('n', '<leader>rr', '<CMD>lua require("user.mods").toggleCodeRunner()<CR>') -- Run executable file -map('n', '<leader>rc', ":lua require('user.mods').RunCurrentFile()<CR>:echom 'Running executable file...'<CR>:sl!<CR>:echo ''<CR>") +map('n', '<leader>rx', ":lua require('user.mods').RunCurrentFile()<CR>:echom 'Running executable file...'<CR>:sl!<CR>:echo ''<CR>") + +-- Close all floating windows +map('n', '<leader>cw', '<CMD>CloseFloatingWindows<CR>') |
