From 5d898da816dbfe117167fce3179f7757cbccb696 Mon Sep 17 00:00:00 2001 From: diniamo Date: Fri, 20 Dec 2024 16:27:44 +0100 Subject: [PATCH] nvim-notify: fix some stuff --- .../ui/notifications/nvim-notify/config.nix | 14 +++----------- .../ui/notifications/nvim-notify/nvim-notify.nix | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/modules/plugins/ui/notifications/nvim-notify/config.nix b/modules/plugins/ui/notifications/nvim-notify/config.nix index 0ee23017e..509721768 100644 --- a/modules/plugins/ui/notifications/nvim-notify/config.nix +++ b/modules/plugins/ui/notifications/nvim-notify/config.nix @@ -14,17 +14,9 @@ in { startPlugins = ["nvim-notify"]; pluginRC.nvim-notify = entryAnywhere '' - require('notify').setup(${toLuaObject cfg.setupOpts}) - - -- required to fix offset_encoding errors - local notify = vim.notify - vim.notify = function(msg, ...) - if msg:match("warning: multiple different client offset_encodings") then - return - end - - notify(msg, ...) - end + local notify = require("notify") + notify.setup(${toLuaObject cfg.setupOpts}) + vim.notify = notify ''; }; }; diff --git a/modules/plugins/ui/notifications/nvim-notify/nvim-notify.nix b/modules/plugins/ui/notifications/nvim-notify/nvim-notify.nix index f30d19cd0..b09100da2 100644 --- a/modules/plugins/ui/notifications/nvim-notify/nvim-notify.nix +++ b/modules/plugins/ui/notifications/nvim-notify/nvim-notify.nix @@ -28,7 +28,7 @@ in { }; stages = mkOption { - type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"]; + type = enum ["fade_in_slide_out" "fade" "slide" "static"]; default = "fade_in_slide_out"; description = "The stages of the notification"; }; @@ -41,7 +41,7 @@ in { background_colour = mkOption { type = str; - default = "#000000"; + default = "NotifyBackground"; description = "The background colour of the notification"; };