diff --git a/modules/ui/notifications/nvim-notify/config.nix b/modules/ui/notifications/nvim-notify/config.nix index 3c4b573..8eb50d8 100644 --- a/modules/ui/notifications/nvim-notify/config.nix +++ b/modules/ui/notifications/nvim-notify/config.nix @@ -23,8 +23,17 @@ in { DEBUG = "${cfg.icons.DEBUG}", TRACE = "${cfg.icons.TRACE}", }, - } + + -- 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 ''; }; }