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