From e0ba4de2f90d9c34e2fa0f7a94719586d162514b Mon Sep 17 00:00:00 2001 From: MaasOedipa Date: Mon, 13 Apr 2026 10:54:55 +0200 Subject: [PATCH] added keybind for disabling notify we need this because nixos nvim fucking scks --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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!!"')