From 1791d088b3e50b37c1be358a6e43d49a4d173e52 Mon Sep 17 00:00:00 2001 From: blob42 Date: Mon, 7 Aug 2023 14:42:09 +0200 Subject: [PATCH] silence unwanted warnings --- lua/custom/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 567804d..76d3c96 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -24,6 +24,16 @@ autocmd("WinLeave", { group = windowGroup, }) +-- silence unwanted warnings +local notify = vim.notify +vim.notify = function(msg, ...) + if msg:match("warning: multiple different client offset_encodings") then + return + end + + notify(msg, ...) +end + -- window closing -- TODO: using dynamic C-x command -- if character under cursor is number