From 724298a0f7a8b0de9775d4a02c0498e7ffdf2ec8 Mon Sep 17 00:00:00 2001 From: Cassin01 Date: Sat, 17 Aug 2024 22:29:50 +0900 Subject: [PATCH] ignore some messages --- fnl/core/opt/init.fnl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fnl/core/opt/init.fnl b/fnl/core/opt/init.fnl index f02204c..b07e945 100644 --- a/fnl/core/opt/init.fnl +++ b/fnl/core/opt/init.fnl @@ -54,3 +54,12 @@ ; (vim.fn.mkdir target-path :p 0700)) ; (tset vim.o :undodir target-path) ; (tset vim.o :undofile true))) + +;; ignore some messages + (let [notify (. vim :notify)] + (tset + vim :notify + (lambda [msg ...] + (when (: msg :match "warning: multiple different client offset_encodings") + (lua :return)) + (notify msg ...))))