diff --git a/init.lua b/init.lua index bccb0635..d9ec42c8 100644 --- a/init.lua +++ b/init.lua @@ -77,6 +77,19 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn -- or just use to exit terminal mode vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) +-- Disable plugins +local notify_enabled = true + +vim.keymap.set('n', 'un', function() + notify_enabled = not notify_enabled + + if notify_enabled then + vim.notify = require 'notify' + else + vim.notify = function() end + end +end, { desc = 'Toggle notifications' }) + -- TIP: Disable arrow keys in normal mode vim.keymap.set('n', '', 'echo "Use h to move!!"') vim.keymap.set('n', '', 'echo "Use l to move!!"')